NGINX Package: Stopping does not kill processes
I have nginx 0.8.54 installed from the alpine edge main repository. I made some changes to the conf so I decided to reload it: /etc/init.d/nginx reload. Doing so resulted in the following:
mp5shooter:~# /etc/init.d/nginx reload
* Checking nginx’ configuration …
the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful [ ok ]
* Refreshing nginx’ configuration …
cat: can’t open ‘/var/run/nginx.pid’: No such file or directory
* Failed to reload nginx [ !! ]
When I do ‘ps x’ the nginx master process and the worker processes are still running. Attempting to start nginx before killing them manually will result in many port bind errors. This also happens when stopping the server entirely (the processes don’t die) and also when restarting. Each time, you have to go in and manually kill the master process (which kills the worker processes).
(from redmine: issue id 559, created on 2011-03-25, closed on 2011-03-25)