After first setting up a Linux server with Fedora Core 2 Linux, I received the following error message in an email message sent to root:
Date: Sun, 12 Sep 2004 19:00:42 -0400
From: firstname.lastname@example.org (Anacron)
Subject: Anacron job 'cron.daily'
error: stat of /var/log/ppp/connect-errors failed: No such file or directory
According to Bugzilla Bug 126771: logrotate error because of non-existent /var/log/ppp/connect-errors this error can be prevented by adding a missingok to /etc/logrotate.d/ppp. The problem occurs if PPP isn't used, which means there won't be a log file for it in /var/log/ppp. By adding the missingok to /etc/logrotate.d/ppp, you indicate that an error message shouldn't be produced if the log file is missing and so can't be rotated.
Bug 122911 - Logrotate problem if ppp isn't used and there isn't a logfile in
/var/log, the problem is present in version 2.4.2 release 2 of the ppp
package. I didn't add the missingok line, but instead upgraded the
ppp package (use
up2date --install ppp). I now have
version 2.4.2 release 3.FC2.1 of ppp, which added the missingok
# Logrotate file for ppp RPM
create 0600 root root