Bug #11330
closedlogrotate reload error on Ubuntu 14.04
100%
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.
Updated by Sage Weil about 9 years ago
- Status changed from New to Fix Under Review
Updated by Kefu Chai about 9 years ago
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
.
Updated by Kefu Chai about 9 years ago
- Status changed from Fix Under Review to Resolved
- % Done changed from 0 to 100
Updated by Nathan Cutler over 8 years ago
- Status changed from Resolved to Pending Backport
- Backport set to hammer
- Regression set to No
Updated by Loïc Dachary over 8 years ago
- Status changed from Pending Backport to Resolved