Bug #11330
closed
logrotate reload error on Ubuntu 14.04
Added by Wim Heirman about 9 years ago.
Updated over 8 years ago.
Description
The logrotate script tries to restart ceph using invoke-rc.d, which results it the following error:
/etc/cron.daily/logrotate:
invoke-rc.d: policy-rc.d denied execution of reload.
On Ubuntu 14.04, both `invoke-rc.d' and `service' exist but the latter should be used instead. Switching the order of detection in /etc/logrotate.d/ceph should fix this.
- Priority changed from Normal to Urgent
- Assignee set to Kefu Chai
- Status changed from New to Fix Under Review
just for the fun of reading,
There is a provision for a "local initscript policy layer" (read: a call to /usr/sbin/policy-rc.d if this executable is present in the local system), which allows the local system administrator to control the behaviour of invoke-rc.d for every initscript id and action. It is assumed that this script is OPTIONAL and will by written and provided by packages other than the initscript system (sysvinit and file-rc packages).
quote from https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
the policy-rc.d in this case returns 101, which means the action is denied by local admin. so we try service
first as a workaround. i think it's okay to respect /usr/sbin/policy-rc.d though.
but when it comes to the maintainer script, like ceph.prerm
, we should respect Debian policy 9.3.3 and stick to invoke-rc.d
.
- Status changed from Fix Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Pending Backport
- Backport set to hammer
- Regression set to No
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF