Public bug reported:

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

** Affects: atop (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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 
+ 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1170261

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/atop/+bug/1170261/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to