[systemd-devel] Variable expansion in ConditionPathExists

Marcos Felipe Rasia de Mello marcosfrm at gmail.com
Wed Dec 24 04:37:50 PST 2014


Hi,

I have a system service that runs with a normal user account
([Service] User=bla). I tried

[Unit]
ConditionPathExists=$HOME/config.xml

but it does not work:

systemd[1]: [/etc/systemd/system/bla.service:4] Path in condition not
absolute, ignoring: $HOME/config.xml

%h also does not work (expand to /root). I am running
systemd-216-12.fc21.x86_64.

It is not crucial to my service, still can be useful perhaps?

--
Marcos


More information about the systemd-devel mailing list