Created
December 16, 2014 00:27
-
-
Save virullius/e7873a169d360aa2b06a to your computer and use it in GitHub Desktop.
check if nginx is running without killall
This file contains hidden or 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
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