I am reading the Fedora packaging guidelines on using systemd presets but am missing a key point:
The macro %systemd_post runs systemctl preset
meaning that the information about whether to enable or to disable the service must already be present in the systemd preset files. But where does it go there from in the first place? Should the package first place it own preset file in the location provided (which is not recommended as far as I have read since it complicates the management of the general policy) or add the service being installed into one of the existing systemd preset files? To which then as there are several of them?
I am talking about a self-written service which meets the requirements of being enabled by default and which I would thus like to enable automatically during the installation.