Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351951 - www-servers/nginx-0.8.53 logrotate script throws error when nginx is not running
Summary: www-servers/nginx-0.8.53 logrotate script throws error when nginx is not running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 22:50 UTC by Peter Abrahamsen
Modified: 2011-04-08 08:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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