Hi, I need a little help, since some days ago I receive this error message
------------------------------------------------------------------------------
/etc/cron.daily/logrotate:
minidaemn: unrecognized service
error: error running non-shared postrotate script for /var/log/minidaemon.log of '/var/log/minidaemon.log '
------------------------------------------------------------------------------
I have reviewed and the minidaemn service is not on file logrotate.conf
and file logrotate
What could be causing this error?
Thanks you.
------------------------------------------------------------------------------
/etc/cron.daily/logrotate:
minidaemn: unrecognized service
error: error running non-shared postrotate script for /var/log/minidaemon.log of '/var/log/minidaemon.log '
------------------------------------------------------------------------------
I have reviewed and the minidaemn service is not on file logrotate.conf
Code:
# 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
# use date as a suffix of the rotated file
dateext
# 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 and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}
# system-specific logs may be also be configured here.
and file logrotate
Code:
#!/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
What could be causing this error?
Thanks you.