<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sun, May 13, 2018 at 11:34 AM Niels Thykier <<a href="mailto:niels@thykier.net">niels@thykier.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Control: tags -1 patch<br>
<br>
On Sun, 21 Jan 2018 16:45:47 +0100 Michael Biebl <<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a>> wrote:<br>
> [...]<br>
> <br>
> See the generated postinst script.<br>
> <br>
> The more I think about these ordering issues, the more I'm convinced<br>
> that for services which ship both a native service file and a systemd<br>
> service file, we should leave the start/stop/restart of the service to<br>
> dh_installsystemd/deb-systemd-invoke and only use the invoke-rc.d call<br>
> on sysvinit systems.<br>
<br>
I have created a patch that ensures that dh_installsystemd's snippet are<br>
used for start/stop/restart iff the system is running systemd.<br>
Otherwise, the dh_installinit version handles start/stop/restart.<br>
<br>
* I would welcome a review of this branch before I merge it, so we do<br>
not end up with another "incomplete split" like we had with compat<br>
11.<br></blockquote><div><br></div><div>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.</div><div><br></div><div><br></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>Saludos,<br>Felipe Sateler</div></div>