Created
June 11, 2014 16:44
-
-
Save juliangruber/c5fb3a1e72c7ec1a2195 to your computer and use it in GitHub Desktop.
nginx upstart script (broken)
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
| description "nginx" | |
| author "Julian Gruber <julian@segment.io>" | |
| stop on shutdown | |
| env DAEMON=/usr/sbin/nginx | |
| env PID=/var/run/nginx.pid | |
| env NGINX_ENV=dev | |
| expect fork | |
| respawn | |
| pre-start exec $DAEMON -t | |
| post-start exec $DAEMON -s stop | |
| exec $DAEMON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment