Skip to content
  • Lennart Poettering's avatar
    unit: allow extension of unit files with .d/*.conf drop-ins · 8afbb8e1
    Lennart Poettering authored
    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
    8afbb8e1