[systemd-devel] overrride env variable

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Mar 12 04:10:45 PDT 2015


On 12/03/15 10:45, Vasiliy Tolstov wrote:
> If service file have Environment and EnvironmentFile in which order it
> parsed and does it possible to define via Environment variables
> default and override it via EnvironmentFile ?

SYSTEMD.EXEC(5)                  systemd.exec

NAME
       systemd.exec - Execution environment configuration
...
       EnvironmentFile=
...
       Settings from these files override settings made with
       Environment=. If the same variable is set twice from these files,
       the files will be read in the order they are specified and the
       later setting will override the earlier setting.

-- 
Simon McVittie
Collabora Ltd. <http://www.collabora.com/>



More information about the systemd-devel mailing list