Welcome! Log In Create A New Profile

Advanced

Re: upstart conf for managing nginx

vikrant singh
July 29, 2015 12:38PM
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@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@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upstart conf for managing nginx

vikrant singh July 24, 2015 07:10PM

Re: upstart conf for managing nginx

Francis Daly July 25, 2015 03:02AM

Re: upstart conf for managing nginx

Thiago Farina July 27, 2015 03:30PM

Re: upstart conf for managing nginx

vikrant singh July 29, 2015 12:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready