Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upstart script to start nginx on Ubuntu
description "nginx http daemon"
start on runlevel [2]
stop on runlevel [016]
env NGINX_BIN=/usr/sbin/nginx
console owner
pre-start exec $NGINX_BIN -t
expect fork
respawn
exec $NGINX_BIN
post-stop exec $NGINX_BIN -s stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment