diff --git a/nginx/templates/upstart.jinja b/nginx/templates/upstart.jinja index f0cc377..a67fdd3 100644 --- a/nginx/templates/upstart.jinja +++ b/nginx/templates/upstart.jinja @@ -3,8 +3,8 @@ description "nginx http daemon" author "George Shammas " -start on (filesystem and net-device-up IFACE=lo) -stop on runlevel [!2345] +start on (runlevel [345] and started network) +stop on (runlevel [!345] or stopping network) env DAEMON=/usr/sbin/nginx