Skip to content

Instantly share code, notes, and snippets.

Embed
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;"
respawn
@thedanielhanke

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.

@IvanAnishchuk

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 http://nginx.org/en/docs/faq/daemon_master_process_off.html

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