[systemd-devel] Query regarding "EnvironmentFile"

Andrei Borzenkov arvidjaar at gmail.com
Sun Dec 20 09:26:24 PST 2015


20.12.2015 16:47, Marc Haber пишет:
> 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?
> 

Yes to both. At the end that is exactly what "systemctl edit" does.

>>   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
> 



More information about the systemd-devel mailing list