My preference for server side Linux is Debian 4. As with most distributions, most of the system files are rotated on a daily, weekly, and monthly basis by logrotate. For example, in Debian the log files for apache2, aptitude, and clamav are all handled by logrotate, and the configuration files are located in /etc/logrotate.d/
create 640 root www-data
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 restart > /dev/null
I was finding that my postfix log, mail.log, was getting rotated more often, even though it was really not very large. Sometimes it would rotate every day, sometimes every two days. But I couldn’t find any logrotate config files for the postfix logs. After a bit of searching I discovered that the mail facilities are handled by savelog, which operates in sysklogd. sysklogd is a script that runs in the daily cron at /etc/cron.daily/sysklogd.
A bit of the script is here, and you can see the savelog command:
for LOG in `syslogd-listfiles`
if [ -s $LOG ]; then
savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null
So what is syslogd-listfiles? It will show you all files that are to be logged with syslogd.
silver:/etc/cron.daily# syslogd-listfiles --all