We use nginx on centos 6, and the init.d script from here: https://gist.github.com/sairam/5892520/raw/b8195a71e944d46271c8a49f2717f70bcd04bf1a/etc-init.d-nginx
It all "works"
Nginx runs, etc.
However, in certain cases after using this init.d script via ssh, the script, both via ssh and as root on the console, only appears to work.
service nginx stop [OK]
But nginx is still running....
service nginx restart [OK]
But the service is running with same pid, and did not ever exit.
Rebooting the box seems to be the only way to properly get the service to stop and restart.
Full steps and problem shown below.
How do I approach this problem?
Here I log in as sysadmin, and then su up to run commands:
Here I just log in as root to begin with. Same issue: