Skip to content

Instantly share code, notes, and snippets.

@virullius
Created December 16, 2014 00:27
Show Gist options
  • Save virullius/e7873a169d360aa2b06a to your computer and use it in GitHub Desktop.
Save virullius/e7873a169d360aa2b06a to your computer and use it in GitHub Desktop.
check if nginx is running without killall
kill -0 $(ps -eo pid,command | grep nginx | grep master | awk -F ' ' '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment