Cron <root@server> run-parts /etc/cron.daily

sahithp

Member
Jun 13, 2011
15
1
53
I am getting these mails daily, please help me on this

Code:
/etc/cron.daily/logrotate:

error: bad line 76 in state file /var/lib/logrotate.status
error: stat of /etc/logrotate.conf: failed: No such file or directory
error: stat of ASCII failed: No such file or directory
error: stat of text failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of see failed: No such file or directory
error: stat of man logrotate failed: No such file or directory
error: stat of for failed: No such file or directory
error: stat of details failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of rotate failed: No such file or directory
error: stat of log failed: No such file or directory
error: stat of files failed: No such file or directory
error: stat of weekly failed: No such file or directory
error: stat of weekly failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of keep failed: No such file or directory
error: stat of 4 failed: No such file or directory
error: stat of weeks failed: No such file or directory
error: stat of worth failed: No such file or directory
error: stat of of failed: No such file or directory
error: stat of backlogs failed: No such file or directory
error: stat of rotate failed: No such file or directory
error: stat of 1 failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of create failed: No such file or directory
error: stat of new failed: No such file or directory
error: stat of (empty) failed: No such file or directory
error: stat of log failed: No such file or directory
error: stat of files failed: No such file or directory
error: stat of after failed: No such file or directory
error: stat of rotating failed: No such file or directory
error: stat of old failed: No such file or directory
error: stat of ones failed: No such file or directory
error: stat of create failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of RPM failed: No such file or directory
error: stat of packages failed: No such file or directory
error: stat of drop failed: No such file or directory
error: stat of log failed: No such file or directory
error: stat of rotation failed: No such file or directory
error: stat of information failed: No such file or directory
error: stat of into failed: No such file or directory
error: stat of this failed: No such file or directory
error: stat of directory failed: No such file or directory
error: stat of include failed: No such file or directory
error: stat of # failed: No such file or directory
error: stat of no failed: No such file or directory
error: stat of packages failed: No such file or directory
error: stat of own failed: No such file or directory
error: stat of wtmp failed: No such file or directory
error: stat of -- failed: No such file or directory
error: stat of well rotate them here
/var/log/wtmp  failed: No such file or directory
error: stat of /var/log/btmp failed: No such file or directory
error: could not read state file, will not attempt to write into it
Let me know what should i do .... to not getting these error.... why it is stating no file or directory.
 

sahithp

Member
Jun 13, 2011
15
1
53
@InfoPro... did as you said got the following result ...

'access_log' is in rotation

'build_locale_databases_log' is in rotation

'cpdavd_error_log' is in rotation

'cphulkd.log' is in rotation

'cphulkd_errors.log' is in rotation

'error_log' is in rotation

'license_log' is in rotation

'login_log' is in rotation

'panic_log' is in rotation

'queueprocd.log' is in rotation

'safeapacherestart_log' is not in rotation

'setupdbmap_log' is not in rotation

'stats_log' is in rotation

'tailwatchd_log' is in rotation
 

sahithp

Member
Jun 13, 2011
15
1
53
my logrotate file looks like ..

#!/bin/sh
export TMPDIR=/var/spool/logrotate/tmp

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0