sysklogd rotate script is broken
When /etc/syslog.conf has lines that starts with space or tab (see below
example) then the logrotate script gets confused.
In this example “/var/log/debug” and “/var/log/messages” will not be
rotated as expected.
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
(from redmine: issue id 408, created on 2010-08-18, closed on 2010-12-17)
- Changesets:
- Revision 6c890d6e on 2010-09-02T15:18:40Z:
main/sysklogd: fix logrotation script
the syslogd_listfiles didnt handle the --auth option properly.
We fix this and make it slightly more readable with -e
ref #408
- Revision 24dfddb1 on 2010-09-03T08:44:15Z:
main/sysklogd: fix logrotation script
the syslogd_listfiles didnt handle the --auth option properly.
We fix this and make it slightly more readable with -e
ref #408
(cherry picked from commit 6c890d6e6624ff6debcfb070d1d7fa88db0bc4ad)
- Revision 1a27133d on 2010-12-08T15:57:51Z:
main/sysklogd: fix log rotating
ref #408
- Revision 12a6e9a8 on 2010-12-09T08:16:50Z:
main/sysklogd: fix log rotating
ref #408
(cherry picked from commit 1a27133d79e1de4818ccc4323bb7223680e2725c)