Virtualmin错误Current logrotate configuration is not valid出现的现象:
error: stat of /var/log/cron failed: No such file or directory
原因:
Log file rotation 功能受限制
This was due to the syslog daemon not running. Check if the service is running and restart. Your server may have syslogd daemon on rsyslogd depending on your OS.
解决办法:
I had rsyslogd on Centos 5.2
# /etc/init.d/rsyslog status
rsyslogd is stopped
rklogd is stopped# /etc/init.d/rsyslog start
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
Check if the service is being started at the starup :
# chkconfig –list | grep rsyslog
rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Use Command to enable the daemon at startup
# chkconfig rsyslog on
The log files were not being created due to the daemons stopped, after restart all started generating.
Cheers!