Welcome! Log In Create A New Profile

Advanced

Re: nginx reload, stop error

Maxim Dounin
July 21, 2014 08:00AM
Hello!

On Fri, Jul 18, 2014 at 11:32:38PM +0100, Matthew Ngaha wrote:

> Hey, when I run './nginx -s reload' or './nginx -s stop' i get this:
>
> nginx: [error] open() "/usr/local/nginx-1.4.3/logs/nginx.pid" failed
> (2: No such file or directory)
>
> Any ideas why it's trying to open this file that doesn't exist?

There are multiple possible reasons - e.g., this can happen
because you've changed the configuration file, or if you are
trying to stop wrong nginx.

In general, it's good idea to use "kill" to control nginx on
unix-like systems (not the "nginx -s" which is mostly for Windows
and requires a configuration file to work). Use of "kill" allows
to explicitly specify PID of the master process (and/or to get one
from a pid file of your choice).

See here for details on how to control nginx using signals:

http://nginx.org/en/docs/control.html

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx reload, stop error

Matthew Ngaha July 18, 2014 06:34PM

Re: nginx reload, stop error

Robert Paprocki July 18, 2014 06:36PM

Re: nginx reload, stop error

Maxim Dounin July 21, 2014 08:00AM

Re: nginx reload, stop error

xning9 November 24, 2014 01:25PM

Re: nginx reload, stop error

Maxim Dounin November 25, 2014 07:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
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