I reply to your message in the bottom part, just let me explain how I got this situation,
because my previous message lacked of informations.
I have built and installed a new BOINC release with a systemd unit file patch, and I have
noticed that the service behaviour has not changed.
Therefore I runned
# systemctl edit --full boinc-client
and I have noticed that the BOINC systemd unit file has not been updated. So if I recall
correctly, I searched for boinc-client.service file, and found it in
/etc/systemd/system/boinc-client.service
and
/usr/lib/systemd/system/boinc-client.service
then I remved the former, then runned
# dnf reinstall boinc-client.rpm
and everything seemed to be okay on both
# systemctl edit --full boinc-client
and general service behaviour.
First, packages should install unit files into
/usr/lib/systed/systemd/.
Units in /etc are for system administrators and shouldn't be touched
by packages.
BOINC client spec file should be okay
https://src.fedoraproject.org/rpms/boinc-client/blob/master/f/boinc-clien...
I haven't installed the unit file under /etc. Perhaps this happened after
# systemctl edit --full boinc-client
usage?
Second, if the unit file is marked in .spec as %config(noreplace),
then it won't be touched/replaced on package upgrade.
%config(noreplace) is not used for the systemd unit file
Third, you need to do `systemctl daemon-reload` when changing unit
files.
Yes I know, I use it everytime I run
# systemctl edit --full boinc-client
Do you know if it should be runned also after BOINC package update (obviously a machine
reboot will make this useless)
Manual edits as in `systemctl edit --full`? Plain `systemctl
edit`
only creates addon snippets and does not copy the unit.
Yes I know, I only used
# systemctl edit --full boinc-client
Nevertheless, if admin placed unit in /etc, this unit has a
priority
over the one in /lib installed by package. This is by design.
I have never placed BOINC systemd unit file in
/etc/systemd/system
but I am wondering if "systemctl edit --full" can trigger the creation of such
files under this folder