Bug#804018: options to avoid service startup on package installation
Marc Haber writes ("Re: Bug#804018: options to avoid service startup on package installation"):
> On Wed, Jul 25, 2018 at 10:18:22AM +0100, Simon McVittie wrote:
> > policyrcd-script-zg2 is an adapter between the invoke-rc.d-defined API
> > (which says the policy-rc.d script must be in /usr/sbin) and what that
> > API should maybe have been all along (additionally looking for the script
> > in a configurable location, /usr/local/sbin, and /etc).
>
> And I still think that the adapter should be superfluous and the
> original API should be expanded.
Right.
AIUI from what Simon says, there are two callers of
/usr/sbin/policy-rc.d.
There should be one implementation of the expanded interface.
I suggest a new script which implements it, in init-system-helpers,
called something like /usr/lib/policy-rc.d-invoke, and containing
something like the contentse of policyrcd-script-zg2.
We would then change invoke-rc.d and deb-systemd-* to run that script,
instead of /usr/sbin/policy-rc.d. As an additional bonus, the new
script can run policy-rc.d from $PATH which would be more compliant
with Debian policy.
Does that sound sensible ?
Ian.
--
Ian Jackson <ijackson@chiark.greenend.org.uk> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.
Reply to: