From 74294c061a5ecfa0986ac7684de197987d435bea Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 5 Aug 2009 08:17:53 +0000 Subject: 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 --- main/sysklogd/sysklogd.logrotate | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main/sysklogd/sysklogd.logrotate') diff --git a/main/sysklogd/sysklogd.logrotate b/main/sysklogd/sysklogd.logrotate index 29afd15bd4..0fd0be2ff7 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 +# -- cgit v1.2.3