Context is https://bugs.debian.org/1109119
On Fri, 11 Jul 2025 19:11:42 +0200 Helmut Grohne <hel...@subdivi.de> wrote: > deb-systemd-invoke is part of init-system-helpers and therefore > essential. It calls out to systemctl, which is not essential but for all > practical matters we really should be treating it as if it was and > maintainer scripts expect it to work at all times. How is that expected to behave on systems using other init systems? Here I disable daemons-related actions during apt activity through policy-rc.d, grouping them at the end of apt actions through needrestart, so I probably avoid unwanted systemctl calls that way. But were I not using this specific policy, should I expect maintainer scripts to fail on my systems that do not run systemd? Or are maintainer scripts expected to check for systemd presence, and only call deb-systemd-invoke on systems actually running this init system?
pgpJHG_iusWsI.pgp
Description: Signature digitale OpenPGP