Skip to content

Instantly share code, notes, and snippets.

@andmej andmej/gist:1953239
Created Mar 1, 2012

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
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
You can’t perform that action at this time.