Created
July 6, 2016 14:34
-
-
Save mr4torr/3a103036fd38df604b52117aa5d150ec to your computer and use it in GitHub Desktop.
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" | |
author "George Shammas <georgyo@gmail.com>" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/etc/nginx/sbin/nginx | |
env PID=/var/run/nginx.pid | |
expect fork | |
respawn | |
respawn limit 10 5 | |
#oom never | |
pre-start script | |
$DAEMON -t | |
if [ $? -ne 0 ] | |
then exit $? | |
fi | |
end script | |
exec $DAEMON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment