In /etc/init.d/nginx we see: depend() { need net use dns logger } In case where some paths on network systems this causes problems when netmount stop issued. So this must be rewritten as it done in /etc/init.d/apache: depend() { need net use dns logger netmount } Reproducible: Always
init script supposed to have: kill -USR1 `cat /var/run/nginx.pid` &>/dev/null not: kill -HUP `cat /var/run/nginx.pid` &>/dev/null in reload section because when you send HUP nginx doesnt reopen logs and you can loose some tested with app-admin/logrotate and /etc/init.d/nginx reload > /dev/null 2>&1 || true inside rotate definition
I added the netmount depend in nginx-0.7.64-r2. We don't want to change reload to use USR1 because it *only* reopens the logs, it doesn't actually reload the config (which seems more important there).