[Fedora-packaging] Systemd Preset Policy
sergio at serjux.com
Sat Jul 25 03:10:28 UTC 2015
Let me see if I understand , on 2015-05-20  FESCo has decided to
merge some of the policy around service units, socket units and timer
units into a single policy that treats all units that run as default the
Note: decision made 6 days before Fedora 22 Final Release.
We got some new wiki pages  - How to enable a service by default ?
Services are enabled or disabled by default through systemd preset files
But before that I used a script to enable services like this:
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl restart systemd-modules-load.service >/dev/null 2>&1 || :
/bin/systemctl enable vboxservice.service >/dev/null 2>&1 || :
/bin/systemctl restart vboxservice.service >/dev/null 2>&1 || :
This kind of scriptlet still works on Fedora 22 (updated), on a new
Other wiki page shows that PackagePresets are from Fedora 18 ! 
And what is the best way to set a preset for a service ? that we want
enable by default, when is installed .
Note: I'm asking this because I don't saw any example on package
Sérgio M. B.
More information about the packaging