# nginx description "nginx http daemon" start on (filesystem and net-device-up IFACE=lo) stop on runlevel [!2345] env DAEMON=%%INSTALL%%/nginx/%%VERSION%%/sbin/nginx env PID=%%INSTALL%%/www/nginx.pid expect fork respawn respawn limit 10 5 #oom never pre-start script exec $DAEMON -t -p %%INSTALL%%/www if [ $? -ne 0 ] then exit $? fi end script script exec $DAEMON -p %%INSTALL%%/www end script