When I try to restart nginx with sudo / etc / init.d / nginx reboot, I get a message from the topic.
I found that the reason is because the script does not know how to stop the deamon, because the pid file (/var/run/nginx.pid) is not created at startup.
I have two installations on two different servers ... one was compiled from the source, and the other with a phusion passenger.
I tried this command:
start-stop-daemon
a pid file is created on both machines and one, but not on the other - the paths are slightly different on this computer (but I don’t think it matters):
start-stop-daemon
The process starts and pid is not written ...
I'm on Debian ...
Any suggestions?
source
share