1 (edited by Athen 2009-12-20 05:43:28)

Topic: /etc/cron.daily/logrotate error after install

Hello and good day,

After a clean install of Ubuntu 9.10 server and iRedMail, I am receiving these system emails:

/etc/cron.daily/logrotate:
invoke-rc.d: unknown initscript, /etc/init.d/sysklogd not found.
error: error running non-shared postrotate script for /var/log/mail.log of '/var/log/mail.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

I was wondering if anyone else experienced the same or if anyone knows how to fix the issue above.
Thanks!

2 (edited by Athen 2009-12-20 06:23:56)

Re: /etc/cron.daily/logrotate error after install

Well, not sure why it is this way. But I am going to just remove the maillog file (/etc/logrotate.d/maillog) and place the logs back into the rsyslog file to handle the rotation. This is the default in Ubuntu and hopefully will not break anything in iRedMail smile

thanks!!

Forgot to include:

A fix for the current file would be to replace the:

postrotate
        invoke-rc.d sysklogd reload > /dev/null

-with-

postrotate
        reload rsyslog >/dev/null 2>&1 || true

3

Re: /etc/cron.daily/logrotate error after install

I'm getting the same issue, how did you resolve it?

/etc/cron.daily/logrotate:
invoke-rc.d: unknown initscript, /etc/init.d/rsyslog not found.
error: error running postrotate script for /var/log/mail.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

Thanks for any help Ben

4 (edited by shake 2010-04-05 17:32:26)

Re: /etc/cron.daily/logrotate error after install

web2works wrote:

I'm getting the same issue, how did you resolve it?

/etc/cron.daily/logrotate:
invoke-rc.d: unknown initscript, /etc/init.d/rsyslog not found.
error: error running postrotate script for /var/log/mail.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

Thanks for any help Ben

http://www.iredmail.org/forum/topic617- … beta1.html

check it,try to fix it.

edit  /etc/logrotate.d/maillog
in line 32
       invoke-rc.d sysklogd reload > /dev/null
should be
    invoke-rc.d rsyslog reload > /dev/null