-
-
Save ku1ik/2492523 to your computer and use it in GitHub Desktop.
Nginx upstart script that WORKS with Passenger.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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