Created
August 3, 2011 14:14
-
-
Save austinbv/1122737 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| sudo monit status | awk -F "[' ]" '/Process/ { p = $3; } /pid/ && !/parent/ { printf("%s\t%d\n", p, $NF); }' | sort > resque.log | |
| sudo monit restart -g resque_workers | |
| # compare first list with new list | |
| # kill pid's if they did not change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment