/etc/systemd/system/unit.service.d vs /lib/systemd/system/unit.service.d

Information

ID: 312
PHID: PHID-TASK-vjb3kpm5uwrbdcagipsu
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

What’s the correct location as package upstream when extending systemd unit files? /etc/systemd/system/unit.service.d or /lib/systemd/system/unit.service.d?

I might have made a mistake in T306 (pull).

Figuring this out is important, so I can submit a fixed pull request and also because I plan to use similar overrides.

For example, timesync should extend the systemd unit file sdwdate.service by [Unit] (newline) Requires = msgcollector.service.

And another example, analogous to T306, swap-file-creator.service should be extended by [Unit] (newline) ConditionPathExists = !/usr/lib/qubes-whonix.

Example…


a)

/etc/systemd/system/rads.service.d/40_qubes.conf

sudo systemd-delta
[EXTENDED]   /lib/systemd/system/rads.service → /etc/systemd/system/rads.service.d/40_qubes.conf

b)

/lib/systemd/system/rads.service.d/40_qubes.conf

sudo systemd-delta
[EXTENDED]   /lib/systemd/system/rads.service → /lib/systemd/system/rads.service.d/40_qubes.conf

Comments


nrgaway

2015-05-17 17:04:38 UTC


Patrick

2015-05-18 11:31:06 UTC


Patrick

2015-05-18 11:32:50 UTC