upstart conf for managing nginx
vikrant singh
vikrant.thakur at gmail.com
Wed Jul 29 16:37:00 UTC 2015
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", and it was causing
the problem. I guess because it is also trying to start a binary with same
name (but not sure).
Changing the name of config file fixed the issue.. and I am able to use
upstart conf to manage nginx.
On Sat, Jul 25, 2015 at 12:00 AM, Francis Daly <francis at daoine.org> wrote:
> 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 that has "expect fork".
>
> * the binary you run is /usr/local/nginx/nginx; I think it is more common
> for it to be /usr/local/nginx/sbin/nginx.
>
> Does checking and changing either of those make a difference?
>
> Does "hangs" mean "things run fine eventually, but there is a delay";
> or "things never run correctly"?
>
> (Is there anything in the nginx or upstart logs which might indicate
> the problem?)
>
> f
> --
> Francis Daly francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150729/5b774c4f/attachment.html>
More information about the nginx
mailing list