Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nginx
- description "nginx http daemon"
- author "George Shammas <georgyo@gmail.com>"
- start on (filesystem and net-device-up IFACE=lo)
- stop on runlevel [!2345]
- env DAEMON=/usr/sbin/nginx
- env PID=/var/run/nginx.pid
- expect fork
- respawn
- respawn limit 10 5
- #oom never
- # Test the nginx configuration (Upstart will not proceed if this fails)
- pre-start exec $DAEMON -t
- # Ensure nginx is shutdown gracefully
- # Upstart will be tracking the wrong PID so the following is needed to stop nginx
- post-stop exec $DAEMON -s stop
- exec $DAEMON
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement