[systemd-devel] Query regarding "EnvironmentFile"
Jóhann B. Guðmundsson
johannbg at gmail.com
Fri Dec 11 06:45:15 PST 2015
On 12/11/2015 03:56 AM, Andrei Borzenkov wrote:
> 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:
>>>
>>> Care to show example how it should be done from your point of view?
>>> So that they can actully be compared?
You just create an configuration snipped that replaces the ExecStart
line for the daemon in the unit file with startup options for the daemon
which contains the options you want to change or copy/edit the full unit
and replace it.
In his sample case above where he's using ExecStart=/usr/sbin/httpd
$OPTIONS -D FOREGROUND and the environment file /etc/sysconfig/httpd
you would create an configuration snippet which contains
"ExecStart=/usr/sbin/httpd -D testserver -D FOREGROUND" instead .
The only reason I can think of why distributions decided to split
configuration out of the legacy sys v initscripts to begin ( you used to
just tweak it there ) is because the legacy sysv initscript had become
such a mess that administrator ended up breaking them when they did but
perhaps someone else posses the historic knowledge why distributions
started doing that.
JBG
More information about the systemd-devel
mailing list