chiark / gitweb /
unit: allow extension of unit files with .d/*.conf drop-ins
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Jan 2013 23:21:06 +0000 (00:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Jan 2013 23:21:06 +0000 (00:21 +0100)
commit8afbb8e1180dce3cb33a14fc3ec5afcf501104e6
tree9b865b95b235337ed4603c5764b9edf5ddbc24b3
parent5dd9014faf58bf974352043fbddd3a8e9c3cd9d9
unit: allow extension of unit files with .d/*.conf drop-ins

For all unit files foobar.service we will now read
foobar.service.d/*.conf, too. This may be used to override certain unit
settings without having to edit unit files directly.

This makes it really easy to change specific settings for services
without having to edit any unit file:

mkdir /etc/systemd/system/avahi-daemon.service.d/
echo -e '[Service]\nNice=99' > /etc/systemd/system/avahi-daemon.service.d/nice.conf
systemctl daemon-reload
man/systemd.unit.xml
src/core/load-dropin.c
src/core/unit.c