nginx-init-ubuntu icon indicating copy to clipboard operation
nginx-init-ubuntu copied to clipboard

Unable to stop nginx

Open safetypins opened this issue 9 years ago • 3 comments

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?

safetypins avatar May 03 '16 18:05 safetypins

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.

richhollis avatar Mar 16 '17 13:03 richhollis

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.

JasonGiedymin avatar Mar 16 '17 14:03 JasonGiedymin

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!

richhollis avatar Mar 16 '17 14:03 richhollis