Skip to content

Instantly share code, notes, and snippets.

@andrewp-as-is
Created June 17, 2020 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewp-as-is/6a366d5e10265cfbaf92cce0120a4557 to your computer and use it in GitHub Desktop.
Save andrewp-as-is/6a366d5e10265cfbaf92cce0120a4557 to your computer and use it in GitHub Desktop.
gunicorn kill processes
#!/usr/bin/env bash
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null
ps aux | grep gunicorn | awk '{print $2;}' | xargs kill -9 2>/dev/null
ps aux | grep python | awk '{print $2;}' | xargs kill -9 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment