Florian Kulzer wrote:
You can run /usr/sbin/syslogd-listfiles --all to get a list of all log files that are under the control of sysklogd. If you want to change the behavior you have to look at /etc/cron.daily/sysklogd /etc/cron.weekly/sysklogd The relevant lines in these two scripts are: savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null Adding the -l option will prevent compression; -c controls how many old snapshots are kept.
Florian,Thanks! With the listfiles-command i can see that mail.log is under control by sysklogd.
I can see the corresponding lines in cron.daily(and weekly)/sysklogd. My question: How do i exclude mail.log from sysklogd?Is there a reason to run sysklogd instead of logrotate? Seems rather pointless to have both?
Thank you / Martin