/etc/cron.daily/logrotate: minidaemn: unrecognized service

hostingsql

Registered
Feb 16, 2011
3
0
51
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

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.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston
Is the include present here: /etc/logrotate.d

Very clearly the error is:
Code:
------------------------------------------------------------------------------
/etc/cron.daily/logrotate:

minidaemn: unrecognized service
error: error running non-shared postrotate script for /var/log/minidaemon.log of '/var/log/minidaemon.log '
------------------------------------------------------------------------------
And it must be referenced in some portion of the logrotate config or includes.
 

VasilisParaschos

Registered
Feb 26, 2020
1
1
3
Greece
cPanel Access Level
Root Administrator
Hello, the same thing happened to me and I can confirm the solution above.

Just went to /etc/logrotate.d/minidaemon.conf and changed the line below:

/sbin/service minidaemn restart > /dev/null
to:
/sbin/service minidaemon restart > /dev/null

There was an "o" missing, don't know why this is initially happened.
 
  • Like
Reactions: cPanelLauren