Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created November 8, 2010 15:10
Show Gist options
  • Save casualjim/667785 to your computer and use it in GitHub Desktop.
Save casualjim/667785 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment