Skip to content

Instantly share code, notes, and snippets.

@lucasmazza
Created August 19, 2011 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lucasmazza/1157120 to your computer and use it in GitHub Desktop.
Save lucasmazza/1157120 to your computer and use it in GitHub Desktop.
Nginx upstart script that WORKS with Passenger.
description "nginx http daemon"

start on runlevel [2]
stop on runlevel [016]

console owner

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

respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment