瀏覽代碼

Merge pull request #41 from percipient/sync-nginx-upstart

Synchronized upstart script with the one recommended by nginx.
susefix
Seth House 10 年之前
父節點
當前提交
0810b94c55
共有 1 個檔案被更改,包括 22 行新增7 行删除
  1. +22
    -7
      nginx/templates/upstart.jinja

+ 22
- 7
nginx/templates/upstart.jinja 查看文件

@@ -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…
取消
儲存