It seems that my logfiles generated by syslog are getting rotated twice each day. I believe this is due to both /etc/cron.daily/logrotate and /etc/cron.daily/sysklogd doing overlapping work.
Here are the relevant lines from the sysklogd script:
logs=$(syslogd-listfiles)
test -n "$logs" || exit 0
for LOG in $logs
do
if [ -s $LOG ]; then
savelog -g adm -m 640 -u ${USER} -c 7 $LOG >/dev/null
fi
done
What are the best common practices for dealing with this? Should files generated by syslog not be listed in logrotate? What if I want to use some of logrotate's more advanced features, like postrotate scripts -- should I try to make /etc/cron.daily/sysklogd do it, or should I comment out those lines and let logrotate do it?