Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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;"

This comment has been minimized.

Copy link

@thedanielhanke thedanielhanke commented Oct 28, 2015

thank you. btw, issnt "deamon off" for development/debugging purposes only? just wondering.


This comment has been minimized.

Copy link

@IvanAnishchuk IvanAnishchuk commented Jan 5, 2016

expect daemon doesn't work with daemon mode?

@thedanielhanke It is, but developers claim it's safe enough

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