| Summary: | =app-admin/rsyslog-7.4.4 logrotate broken with openrc | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Patrick McLean <chutzpah> |
| Component: | New packages | Assignee: | Ultrabug <ultrabug> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | pacho, whissi |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 486294 | ||
|
Description
Patrick McLean
2013-10-07 23:50:55 UTC
The new logrotate script also appears to try to rotate a bunch of files that the default gentoo config does not generate, and does not rotate ones that are generated.
Here is an older version of the file:
/var/log/messages /var/log/secure /var/log/maillog /var/log/cron /var/log/spooler /var/log/boot.log {
sharedscripts
postrotate
/etc/init.d/rsyslog reload &>/dev/null || true
endscript
}
Here is the new one:
/var/log/syslog
{
rotate 1
daily
missingok
notifempty
delaycompress
compress
postrotate
kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null || true
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 1
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null || true
endscript
}
It seems like the new version was copied verbatim from another distro, and not updated to support gentoo properly.
The logrotate script hasn't changed between all versions currently in the tree, it is the one from files/7-stable/rsyslog.logrotate :/ What's your logrotate version? Please verify that you are not affected by the already fixed bug 476720 (and bug 476202). Also, logrotate-3.8.7 is working fine on all my systems with rsyslog-7.4.4. Like Pacho said, the logrotate files weren't changed. May I ask why this bug got marked as "confirmed"? Please reopen if you have something to add mate. |