diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-05 08:17:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-05 08:17:53 +0000 |
commit | 74294c061a5ecfa0986ac7684de197987d435bea (patch) | |
tree | d8a849084197503a7d9dd52eb3be2d7c670f2f20 /main/sysklogd/sysklogd.logrotate | |
parent | 11760a8485da27422f78ee8212d5413ec93ff0f3 (diff) | |
download | aports-74294c061a5ecfa0986ac7684de197987d435bea.tar.bz2 aports-74294c061a5ecfa0986ac7684de197987d435bea.tar.xz |
main/sysklogd: use cron to rotate logs rather than logrotate
The cronscript parses the syslog.conf and dynamically rotates all
configured log files, while logrotate is a static list.
This way we avoid needing to update the logrotate script each time
you change syslog.conf
Diffstat (limited to 'main/sysklogd/sysklogd.logrotate')
-rw-r--r-- | main/sysklogd/sysklogd.logrotate | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/sysklogd/sysklogd.logrotate b/main/sysklogd/sysklogd.logrotate index 29afd15b..0fd0be2f 100644 --- a/main/sysklogd/sysklogd.logrotate +++ b/main/sysklogd/sysklogd.logrotate @@ -1,6 +1,6 @@ -/var/log/messages /var/log/auth /var/log/mail /var/log/errors /var/log/kernel { - sharedscripts - postrotate - /etc/init.d/sysklogd --quiet reload - endscript -} +# we do logrotatation in a separate cron script that parses syslog.conf +# and rotates whatever user have configured. +# +# That is better than having users to maunally update this logrotate config +# whenever they touch syslog.conf +# |