[systemd-devel] Query regarding "EnvironmentFile"
Marc Haber
mh+systemd-devel at zugschlus.de
Sun Dec 20 05:47:17 PST 2015
On Sun, Dec 20, 2015 at 02:34:15PM +0100, Tomasz Torcz wrote:
> On Sun, Dec 20, 2015 at 02:30:30PM +0100, Marc Haber 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?
>
> You have to make sure directory /etc/systemd/system/nfs-ganesha.service.d/
> exists, then inside you create something.conf file with above content.
Is that the documented interface equivalent to systemctl edit? Does
the stability promise apply?
> Afterwards you need to issue "systemctl daemon-reload" (or send signal
> to PID1) to have the changes read.
That's a regression over the old-fashioned way, but doable.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
More information about the systemd-devel
mailing list