[systemd-devel] [PATCH 0/2] Empty environment variables in unit files work
Koen Kooi
koen at dominion.thruhere.net
Thu Nov 20 02:34:47 PST 2014
> Op 19 nov. 2014, om 19:44 heeft Iago López Galeiras <iago at endocode.com> het volgende geschreven:
>
> 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
Nitpick: 'empty' looks like a verb there, changing it to 'test: support empty environment variables in unit files' (like the TODO entry) would avoid a lot of confusion.
regards,
Koen
More information about the systemd-devel
mailing list