upstart conf for managing nginx

vikrant singh vikrant.thakur at
Fri Jul 24 23:09:02 UTC 2015

I wrote a small upstart script to stop/start nginx through upstart. This is
how it looks

description "nginx http daemon"
start on (filesystem and net-device-up IFACE=lo)
stop on runlevel [!2345]
expect deamon
respawn limit 10 5
chdir /usr/local/nginx
exec ./nginx

I am running nginx from "/usr/local/nginx", and running as a user with
super user.

Still it hangs on start/stop command. Any idea what I may be missing..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list