Bug#1040364: orphan-sysvinit-scripts: add triggers to restart daemons

Lorenzo plorenzo at disroot.org
Fri Jul 7 22:53:02 BST 2023


On Wed, 5 Jul 2023 21:56:14 +0200 (CEST)
Thorsten Glaser <t.glaser at tarent.de> wrote:

> On Wed, 5 Jul 2023, g1pi at libero.it wrote:
> 
> >But [o-s-s] should also invoke-rc.d <service> try-restart, for
> >perfection.
> 
> I don’t think so. I think the postinst of the services in question
> restart the service, and that ought to “just work”, independent of
> the init system in use, as long as an initsystem-compatible service
> initscript is present (no matter whether it’s in the package itself
> or in a separate one).
> 
> After all, not all packages restart services on upgrade; some pak‐
> kages contain more than one service, not all of which are restarted
> always, etc.
> 
even if debhelper is changed to inject maintscripts regardless of the
*.init script file in the source, non default actions are passed to
dh_installinit in the rules file, so in the case of an uncooperative
maintainer, there is no way for debhelper to know that it has to inject
non-default actions in the snippets.


> bye,
> //mirabilos



More information about the Debian-init-diversity mailing list