Synchronized upstart script with the one recommended by nginx.
http://wiki.nginx.org/Upstart
This commit is contained in:
parent
7febd2deb6
commit
07b7088b98
@ -1,8 +1,23 @@
|
||||
# startup script for Nginx
|
||||
|
||||
respawn
|
||||
|
||||
start on filesystem or runlevel [2345]
|
||||
# nginx
|
||||
|
||||
description "nginx http daemon"
|
||||
author "George Shammas <georgyo@gmail.com>"
|
||||
|
||||
start on (filesystem and net-device-up IFACE=lo)
|
||||
stop on runlevel [!2345]
|
||||
|
||||
exec /usr/sbin/nginx -c /etc/nginx/nginx.conf
|
||||
|
||||
env DAEMON=/usr/sbin/nginx
|
||||
|
||||
expect fork
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
#oom never
|
||||
|
||||
pre-start script
|
||||
$DAEMON -t
|
||||
if [ $? -ne 0 ]
|
||||
then exit $?
|
||||
fi
|
||||
end script
|
||||
|
||||
exec $DAEMON
|
||||
|
Loading…
Reference in New Issue
Block a user