[Pkg-sysvinit-devel] Bug#683084: Make invoke-rc.d/update-rc.d systemd-aware
Michael Stapelberg
stapelberg at debian.org
Mon Aug 27 21:57:43 UTC 2012
Hi Michael,
Quoting Michael Biebl (2012-08-24 16:03:07)
> I've been looking at the jessie-pending branch, and I was wondering why
> you translate force-reload unconditionally to systemctl restart.
> This should only be the case, if the systemd service does not support
> reload, i.e. force-reloads should translate to:
>
> service supports reload → reload
> service does not support reload → restart
>
> That's at least how sysvinit handles it afaics.
I’ve attached a patch to this message which does what we discussed on
IRC: It will try to reload when the service has CanReload=yes and will
fall-back to restart if that doesn’t work.
Also note that I changed the reload) code branch because:
1) It didn’t work since $service was empty.
2) Even if it worked, it would never trigger for sysv-compat-layer
scripts since CanReload is always yes for them.
Best regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invoke-rc.d.patch
Type: text/x-diff
Size: 1871 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120827/a9491496/attachment.patch>
More information about the Pkg-sysvinit-devel
mailing list