Error in atop's logrotate.d script (invoke-rc.d: not found)

Bug #1170261 reported by arne
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
atop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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'?

------
== dpkg -l | grep atop:
ii atop 1.26-0ubuntu1 amd64

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in atop (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.