Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444774 - app-admin/rsyslog-7.2.2 - logrotate calling unavailable invoke-rc.d command
Summary: app-admin/rsyslog-7.2.2 - logrotate calling unavailable invoke-rc.d command
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 09:05 UTC by Robin Hill
Modified: 2012-11-27 11:46 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 Robin Hill 2012-11-26 09:05:54 UTC
The logrotate script for app-admin/rsyslog-7.2.2 calls "invoke-rc.d rsyslog rotate" as the postrotate command. This command isn't available on my system, so either the script is incorrect or there's a missing dependency.

Reproducible: Always

Steps to Reproduce:
1. Install app-admin/logrotate-3.8.2
2. Install app-admin/rsyslog-7.2.2
3. Wait for logrotate to run overnight
Actual Results:  
Receive an email reporting that the logrotate cron job failed due to the invoke-rc.d command being unavailable.

Expected Results:  
The rsyslog logs are rotated without errors.
Comment 1 Dave Armstrong 2012-11-26 23:17:45 UTC
The new rsyslog config files look like they're from/for Debian.

I prefer Debian's rsyslog.conf (traditional timestamps and non-world-readable kernel messages), logrotate script definitely needs fixing.  For users in need of an immediate fix, the Gentoo-specific postrotate command in /etc/logrotate.d/rsyslog was:
/etc/init.d/rsyslog reload &>/dev/null || true
Comment 2 Ultrabug gentoo-dev 2012-11-27 11:46:38 UTC
Thx Robin & Dave, it's fixed, sorry for the error.

+*rsyslog-7.2.2-r1 (27 Nov 2012)
+
+  27 Nov 2012; Ultrabug <ultrabug@gentoo.org> files/7-stable/rsyslog.logrotate,
+  -rsyslog-7.2.2.ebuild, +rsyslog-7.2.2-r1.ebuild:
+  Fix #444774 logrotate script thx to Robin Hill, fix #444754 curl dep thx to
+  Didier Cardoso
+