casualjim
11/8/2010 - 2:37 PM

nginx upstart script

# nginx - web server
description "nginx web server"
author "Graham Edgecombe <grahamedgecombe@gmail.com>"

start on runlevel [2345]
stop on runlevel [016]

expect fork
respawn

exec /opt/nginx/sbin/nginx -c /opt/nginx/conf/nginx.conf -g "daemon: off;"