Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running ArchLinux and nginx, and cannot stop nginx without using a kill -9 on the actual PID files.

I'd instead like to use /etc/rc.d/nginx stop and have the nginx script look in the .pid file for nginx, but the file isn't there. I touched it, but that didn't help either.

Any suggestions would be much appreciated!

Thanks so much.

EDIT: This is what I see when I type /etc/rc.d/nginx restart

So something is going wrong here…

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

There shouldn't be any problem doing this, if you start nginx with /etc/rc.d/nginx start. The rc script does actually use the pid located in /var/run/nginx.pid to quit the nginx daemon.

If that file does not exist, touching alone wouldn't help you much more. Instead you have to write the PID to that file too. But that shouldn't be neccessary in the first place.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.