From time to time we can't reload the nginx service and get this error... /var/run/nginx.pid: No su

Reloading nginx daemon configuration…cat: /var/run/nginx.pid: No such
file
or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec …
or
kill -l [sigspec]

can’t reload.

Any idea why?

I can’t stop it or restart it, I have to kill it and start.

uname -anginx -v

pls.

Istvan, see below:

Linux server2.mydomain.com 2.6.18-128.4.1.el5PAE #1 SMP Tue Aug 4
20:58:34
EDT 2009 i686 athlon i386 GNU/Linux
nginx version: nginx/0.8.14

Thanks!

It’s a bug in the Debian/Ubuntu /etc/init.d/nginx script. It’d be nice
if someone with some Debian-fu could fix it.

Cliff

couple of days ago we had this thread:

the init script you might to want:

http://forum.nginx.org/file.php?2,file=92,filename=nginx.init,download=1

regards,
Istvan

yeah i like your redhat one, i asked someone to port over the same
neat conftest stuff etc.

Great, I’ll give that a shot. Thanks!

Pls help I have the problem, how to do?

Posted at Nginx Forum: