Created
October 29, 2008 02:05
-
-
Save ivey/20586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -a pids | |
i=0 | |
for pid in log/merb.*.pid ; do | |
if [ $pid != "log/merb.main.pid" ]; then | |
pids[$i]=`cat $pid` | |
fi | |
(( i++ )) | |
done | |
# start your new merbs | |
for pid in ${pids[@]} ; do | |
kill -9 $pid | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment