2 ms·
> So the Debian mechanism had to be changed to detect the existence of systemd and stop/start the socket units as well Huh. You’d think the more correct thing
by teddyh 8y ago
> So the Debian mechanism had to be changed to detect the existence of systemd and stop/start the socket units as well
Huh. You’d think the more correct thing to do would be to do “systemctl --runtime --now mask $service; $DO_THING; systemctl --runtime unmask $service; systemctl start $service”. Or, even more correct, first detect if the service is running, then do the above, except only start the service again if it was running previously.
- JdeBP 8y agoIt isn't, of course, for the reason already given. In fact, the Debian people created two extra programs named deb-systemd-helper (with the same enable/disable/mask/unmask syntax as systemd's own systemctl) and deb-systemd-invoke (with the same start/stop/restart syntax as systemd's own systemctl) for performing all of these actions over package upgrades, employing a parallel set of service symbolic link farms. * https://manpages.debian.org/stretch/init-system-helpers/deb-systemd-helper.1p.en.html https://manpages.debian.org/stretch/init-system-helpers/deb-... * https://manpages.debian.org/stretch/init-system-helpers/deb-systemd-invoke.1p.en.html https://manpages.debian.org/stretch/init-system-helpers/deb-...