Skip to content

Instantly share code, notes, and snippets.

@catichenor
Last active March 25, 2016 22:21
Show Gist options
  • Save catichenor/fef28c91b94238504487 to your computer and use it in GitHub Desktop.
Save catichenor/fef28c91b94238504487 to your computer and use it in GitHub Desktop.
How to kill a bunch of gunicorns in one line
#!/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