Thanks for your reply.. and pointing out the typo.
nginx doesnt comes up, and upstart command hangs, I have to kill it to come
out of it.
Changing path did not helped and neither does expect fork (but I do agree I
need fork and not daemon) .
It turned out that I named my conf file as "nginx.conf",
Besides everything Francis said, there is also a typo in the 'expect'
line. s/deamon/daemon
--
Thiago Farina
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
On Fri, Jul 24, 2015 at 04:09:02PM -0700, vikrant singh wrote:
Hi there,
> I wrote a small upstart script to stop/start nginx through upstart. This is
> how it looks
I do not have an upstart system to test on, but:
* comparing with http://wiki.nginx.org/Upstart, you have "expect daemon"
and tha
Hello,
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
respawn limit 10 5
chdir /usr/local/nginx
exec ./nginx
I am running ngin