[systemd-devel] Query regarding "EnvironmentFile"

Lennart Poettering lennart at poettering.net
Tue Dec 22 16:35:56 PST 2015


On Sun, 20.12.15 14:30, Marc Haber (mh+systemd-devel at zugschlus.de) wrote:

> On Fri, Dec 18, 2015 at 05:00:32PM +0100, Michael Biebl wrote:
> > and then tell admin to use systemctl edit
> > [Unit]
> > Environment=OPTS=-baz
> 
> How would I do the equivalent of systemctl edit with a declarative
> configuration management tool like puppet?

"systemctl edit" is just a helper that simplifies the following common
admin operation:

    # mkdir -p /etc/systemd/system/foo.d
    # vim /etc/systemd/system/foo.d/override.conf
    # systemctl deamon-reload

The drop-ins logic (which this makes use of) is documented in the
man-pages, please have a look.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list