[users] logfile not created for rkhunter-1.2.9-2.el5.rf

Tom G. Christensen tgc at statsbiblioteket.dk
Thu Jan 17 11:00:45 CET 2008


Maarten Stolte wrote:
> Hello,
> 
> when installing rkhunter, it also makes sure its log can be rotated by
> logrotate, but somewhere there seems to be a step missing, as
> logrotate complains like this in its mail to root:
> 
> /etc/cron.daily/logrotate:
> 
> error: stat of /var/log/rkhunter.log failed: No such file or directory
> 
> I'm thinking this log is not created at first. It does exist now, so
> there is something skewed between the first running of rkhunter and
> the first running of logrotate, a fix would be to touch the file when
> installing the rpm I guess?
> 
Just add missingok directive to the logrotate file.

-tgc


More information about the users mailing list