Created
April 9, 2012 07:29
-
-
Save solotimes/2342127 to your computer and use it in GitHub Desktop.
nginx init conf
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
# nginx | |
description "nginx http daemon" | |
author "George Shammas <[email protected]>" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/opt/nginx/sbin/nginx | |
env PID=/var/run/nginx.pid | |
expect fork | |
respawn | |
pre-start script | |
$DAEMON -t | |
if [ $? -ne 0 ] | |
then exit $? | |
fi | |
end script | |
post-stop script | |
start-stop-daemon --stop --pidfile $PID --name nginx --exec $DAEMON --signal TERM | |
end script | |
exec $DAEMON | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment