On Wed, 5 Jul 2023 21:56:14 +0200 (CEST) Thorsten Glaser <t.gla...@tarent.de> wrote:
> On Wed, 5 Jul 2023, g...@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