Nginx can't reload even when config is OK

Vlad K. nginx-ml at
Sat Nov 18 13:59:11 UTC 2017

On 2017-11-18 14:21, tamer1009 wrote:
>   Process: 22036 ExecReload=/bin/kill -s HUP (code=exited,
> status=1/FAILURE)

Systemd is horribly broken. I've seen this happen on when PIDFile is set 
in the service file and you have RestrictSystem in some capacity. 
There's a race condition in systemd that causes the pidfile not to be 
created. May or may not be your solution, but in those cases removing 
PIDfile from the service file (and allowing systemd to guess PID for 
$MAINPID) was the solution.

Vlad K.

More information about the nginx mailing list