Skip to content

Instantly share code, notes, and snippets.

@poppen
Created February 10, 2011 07:27
Show Gist options
  • Save poppen/820093 to your computer and use it in GitHub Desktop.
Save poppen/820093 to your computer and use it in GitHub Desktop.
sudo service nginx stop && pgrep -l nginx; [ "$?" -eq 1 ] && sudo service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment