Created
November 28, 2013 20:00
-
-
Save rchrd2/7697411 to your computer and use it in GitHub Desktop.
This sends a SIGHUP to the children of a master celery process. The benefit of this is that the master celery process keeps it's same PID.
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
# Send a SIGHUP to only the children (--ppid is the magic param here). | |
cat /var/run/celery.pid | xargs ps --no-headers --ppid | awk '{print $1}' | xargs kill -HUP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment