I'm running RHEL3. Here's an error I'm getting:
Quote:
/etc/cron.daily/logrotate:
error running postrotate script
/etc/cron.daily/logrotate
|
I know nothing about this sort of thing, and the error message seems very uninformative (an error, eh? WHAT error?) but I looked at
/etc/cron.daily/logrotate:
Quote:
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
|
and also
/etc/logrotate.conf:
Quote:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
|
This seems sort of like
THIS POST, but my error gives no clues to me ("This failed because....").
I just don't see anything that jumps out at me, and none of this has been modified recently.
Any ideas?