On Wed, 11 Nov 2015 11:04:01 +0100, Alec Leamas wrote:

> BTW, note that the /etc/systemd/system local overrides don't need to be
> complete files, just the things locally changed. systemd merges the /lib
> and /etc files to the actual unit.

To expand on Marc's example, let's say /lib/systemd/system/foo.service 
contains:

    [Service]
    ExecStart=/usr/bin/foo

And /etc/systemd/system/foo.service.d/custom-option.conf contains:

    [Service]
    ExecStart=/usr/bin/foo --custom-option

Later on, /lib/systemd/system/foo.service is updated to contain:

    [Service]
    ExecStart=/usr/bin/foo --disable-unauthenticated-remote-admin-feature

The user will only notice this change and copy it into their own local 
override if they use apt-listchanges, or periodically run systemd-delta.

-- 
Sam Morris
https://robots.org.uk/
 
PGP key dsa1024/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078

Reply via email to