Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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/ 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

Your Answer


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.