Comment 0 for bug 1170261

Revision history for this message
arne (ubuntu-stukjewebgebeuren) wrote :

Today I received this error from logrotate.

logrotate_script: 3: logrotate_script: invoke-rc.d: not found
error: error running non-shared prerotate script for /var/log/atop.log of '/var/log/atop.log '
logrotate_script: 3: logrotate_script: invoke-rc.d: not found

It the script can't locate invoke-rc.d.

root@machine: /etc/logrotate.d# which invoke-rc.d
/usr/sbin/invoke-rc.d

So I'm guessing a $PATH issue?

Also perhaps 'invoke-rc.d ...' should be replace with 'service atop reload'?