Last active
March 25, 2016 22:21
-
-
Save catichenor/fef28c91b94238504487 to your computer and use it in GitHub Desktop.
How to kill a bunch of gunicorns in one line
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
#!/bin/bash | |
# How to kill a bunch of gunicorns in one line | |
ps aux | grep gunicorn | awk '{print $2}' | sudo xargs kill -9 | |
# And no, `pkill -9 gunicorn` doesn't work because it kills out of sequence and causes a crash. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment