pid file location even after setting pid directive

Wandenberg Peixoto wandenberg at gmail.com
Fri Aug 1 15:22:39 UTC 2014


The configuration file used to start the server is the same been used to
stop it?
If you start as
nginx -c /some/confi/file.conf
and stop as
nginx -c /some/confi/file.conf -s stop
it should work.

If you are only doing
nginx -s stop
it will use default configuration that point to another pid file


On Fri, Aug 1, 2014 at 12:11 PM, Mapper Uno <lists at ruby-forum.com> wrote:

> Hi,
>
> I have added pid directive to nginx config.
>
> Pid /home/ubuntu/ngx.pid
>
> Nginx -t -c (conf) also succeeds.
>
> However when I run nginx, and later try to stop it with nginx -s stop, I
> get following error:
>
> Open failed (2 No such file or directory,
> /home/ubuntu/install/nginx/logs/nginx.pid
>
> Please note that nginx is installed under /home/ubuntu/install
>
> Is any other directive missing ?
>
> Thanks in advance
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> 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/20140801/30d47b30/attachment.html>


More information about the nginx mailing list