28 Jun
2023
28 Jun
'23
22:21
Am 28.06.23 um 21:41 schrieb Andrei Borzenkov:
Although we could deal with this (and possible future accidents) via systemd.preset and calling systemctl preset $UNIT in the scriplets.
Which is no solution because it ignores decision of local administrator.
From the systemd.preset manpage:
systemctl preset is used by the post install scriptlets of rpm packages (or other OS package formats), to enable/disable specific units by default on package installation, enforcing distribution, spin or administrator preset policy.
Administrators can overwrite distro policy by providing a preset file of higher priority. Additionally it would still be off if the administrator masked the service. -- Sincerely Kilian Hanich