[systemd-devel] Query regarding "EnvironmentFile"
Andrei Borzenkov
arvidjaar at gmail.com
Thu Dec 10 19:56:37 PST 2015
10.12.2015 18:44, Jóhann B. Guðmundsson пишет:
>
>
> On 12/10/2015 03:20 PM, Reindl Harald wrote:
>>
>> Am 10.12.2015 um 15:46 schrieb Jóhann B. Guðmundsson:
>>> If you are unaware of any other use case for it
>>
>> EnvironmentFile=-/etc/sysconfig/httpd
>> ExecStart=/usr/sbin/httpd $OPTIONS -D FOREGROUND
>>
>> [root at testserver:~]$ cat /etc/sysconfig/httpd
>> OPTIONS="-D testserver"
>>
>> Apache:
>> <IfDefine testserver>
>> Include "conf/local/testserver.conf"
>> </IfDefine>
>>
>> and now you can use the same systemd-unit on a dozens of machines and
>> include specific config snippets WITOUT touch the systemd-unit or
>> *anything* else in the apache configuration
>
> You apparently did not read or grasp what I said earlier.
>
> This is something you do via unit overwrite configuration snipped in
> conjunction with your Apache configuration changes not in an environment
> file.
>
Care to show example how it should be done from your point of view? So
that they can actully be compared?
More information about the systemd-devel
mailing list