[systemd-devel] Variable expansion in ConditionPathExists

Lennart Poettering lennart at poettering.net
Mon Dec 29 05:52:29 PST 2014


On Wed, 24.12.14 10:37, Marcos Felipe Rasia de Mello (marcosfrm at gmail.com) wrote:

> Hi,
> 
> I have a system service that runs with a normal user account
> ([Service] User=bla). I tried
> 
> [Unit]
> ConditionPathExists=$HOME/config.xml

Environment variable expansion is only supported for ExecXYZ= lines,
not otherwise. Unit files are configuration files themselves, and we
don't won't to suport "configuration files for configuration files"
more than a minimum.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list