casualjim
11/8/2010 - 3:10 PM

Nginx upstart script

Nginx upstart script

# nginx - web server
description "nginx web server"
author "Ivan Porto Carrero"

start on (net-device-up and local-filesystems)
stop on runlevel [016]

expect fork
respawn
exec sudo /usr/local/sbin/nginx