On Monday, August 31, 2009 at 15:42:36, Juergen Gotteswinter wrote:
JG> i got some problems with nginx when a "/etc/init.d/nginx restart" is
JG> beeing done. Sometimes Nginx (doesnt matter which version... 0.6.x &
JG> 0.7.x seem to be affected) dies. Sometimes i see processes which are
JG> called "nginx shutting down" which keep running for minutes.
yes. this is bug in CentOS/EPEL nginx initscript.
JG> at the moment i fixed it with a sleep 1s in the nginx init script,
JG> but that couldnt be a final solution.
JG> OS is CentOS5
you never need "service nginx restart".
better solution is use "service nginx reload",
or "service nginx force-reload" (online upgrade).
fixed CentOS nginx initscript in attach.
--
Best regards,
Gena