On Sun, May 13, 2018 at 11:34 AM Niels Thykier <ni...@thykier.net> wrote:

> Control: tags -1 patch
>
> On Sun, 21 Jan 2018 16:45:47 +0100 Michael Biebl <bi...@debian.org> wrote:
> > [...]
> >
> > See the generated postinst script.
> >
> > The more I think about these ordering issues, the more I'm convinced
> > that for services which ship both a native service file and a systemd
> > service file, we should leave the start/stop/restart of the service to
> > dh_installsystemd/deb-systemd-invoke and only use the  invoke-rc.d call
> > on sysvinit systems.
>
> I have created a patch that ensures that dh_installsystemd's snippet are
> used for start/stop/restart iff the system is running systemd.
> Otherwise, the dh_installinit version handles start/stop/restart.
>
>  * I would welcome a review of this branch before I merge it, so we do
>    not end up with another "incomplete split" like we had with compat
>    11.
>

There is one case where I think things go wrong (but I haven't tested): A
package including only an init script will not run invoke-rc.d but it won't
have a dh_installsystemd snippet either, so the service won't get started
on installation.



-- 

Saludos,
Felipe Sateler

Reply via email to