[systemd-devel] [PATCH 0/2] Empty environment variables in unit files work

Iago López Galeiras iago at endocode.com
Wed Nov 19 10:44:42 PST 2014


with this file:

[Unit]
Description=Test empty variables

[Service]
Environment=TEST= TEST2=
ExecStart=/bin/bash -c "env"

[Install]
WantedBy=default.target

I get this output:

Nov 19 16:59:07 arch-tree systemd[1]: Starting Test empty variables...
Nov 19 16:59:07 arch-tree systemd[1]: Started Test empty variables.
Nov 19 16:59:07 arch-tree bash[131]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Nov 19 16:59:07 arch-tree bash[131]: PWD=/
Nov 19 16:59:07 arch-tree bash[131]: TEST=
Nov 19 16:59:07 arch-tree bash[131]: SHLVL=1
Nov 19 16:59:07 arch-tree bash[131]: TEST2=
Nov 19 16:59:07 arch-tree bash[131]: _=/usr/sbin/env


Iago López Galeiras (2):
  test: empty environment variables in unit files
  update TODO

 TODO                      |  2 --
 src/test/test-unit-file.c | 22 ++++++++++++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)

-- 
2.1.3



More information about the systemd-devel mailing list