Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 351951

Summary: www-servers/nginx-0.8.53 logrotate script throws error when nginx is not running
Product: Gentoo Linux Reporter: Peter Abrahamsen <rainhead>
Component: Current packagesAssignee: Benedikt Böhm (RETIRED) <hollow>
Status: RESOLVED FIXED    
Severity: normal CC: dev-zero
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Abrahamsen 2011-01-17 22:50:05 UTC
If nginx has been stopped, logrotate complains:

cat: /var/run/nginx.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
error: error running shared postrotate script for '/var/log/nginx/*_log '

Reproducible: Always
Comment 1 Johan Bergström 2011-01-18 08:44:26 UTC
Could we perhaps use the nginx init script reload here?
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2011-04-08 08:33:59 UTC
fixed, thanks