Hi there.

The package "proton-vpn-daemon" on Arch Linux has a dot install file[1] that 
enables the Proton VPN systemd service right after it is installed.

Then, in "systemctl list-unit-files" command, the service is show as "enabled  
disabled" (current state / preset state).

My question is:
Since the service is enabled automatically after install, would it make sense 
for that package on Arch Linux to ship a file in 
"/usr/lib/systemd/system-preset/" to make it preset-enabled? And would it make 
any difference to be preset-enabled other than just showing up "correctly" in 
the "systemctl list-unit-files" command?

The man page[2] says:

> It is not recommended to ship preset files within the respective software 
> packages implementing the units, but rather centralize them in a distribution 
> or spin default policy, which can be amended by administrator policy, see 
> below.

Arch has only one file, which is 
"/usr/lib/systemd/system-preset/99-default.preset" with "disable *" as its 
contents, in the "systemd" package. No other package ships any system-preset or 
user-preset file.

(Note that I am using Arch Linux as an example, but the logic could apply to 
any other distribution as well.)

Thanks.
-EpicTux123

[1] 
https://gitlab.archlinux.org/archlinux/packaging/packages/proton-vpn-daemon/-/blob/main/proton-vpn-daemon.install
[2] https://www.freedesktop.org/software/systemd/man/latest/systemd.preset.html

Reply via email to