nginx-init-ubuntu
nginx-init-ubuntu copied to clipboard
Unable to stop nginx
I've resolved a couple of issues with this init script by overriding variables in /etc/default/nginx, and the Nginx server now starts correctly, but I am unable to stop the nginx process via the service command. Can you think of a variable that might interfere with stopping the process, but not with starting it?
I had the same issue. I resolved it by setting only PIDSPATH in the init config file (/etc/default/nginx). On my system PIDSPATH=/run resolved the stopping problems. Setting PIDFILE didn't work.
Ok thanks for the info. I'll try to get this squared away. There are things I need to update with the script.
Can you provide OS, Nginx version? I want to add this as a test case.
-Jason
On Mar 16, 2017, at 9:20 AM, Richard Hollis [email protected] wrote:
I had the same issue. I resolved it by setting only PIDSPATH in the init config file (/etc/default/nginx). On my system PIDSPATH=/run resolved the stopping problems. Setting PIDFILE didn't work.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Sure - it's Ubuntu 14.04. Nginx/1.10.2. Let me know if you need anything else or want me to try any changes.
BTW - Thanks for a great script!