Re: [systemd-devel] Variable expansion in ConditionPathExists

2014-12-29 Thread Lennart Poettering
On Wed, 24.12.14 10:37, Marcos Felipe Rasia de Mello ([email protected]) 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 ExecXY

Re: [systemd-devel] Variable expansion in ConditionPathExists

2014-12-25 Thread Marcos Felipe Rasia de Mello
2014-12-25 14:18 GMT-02:00 Zbigniew Jędrzejewski-Szmek : > On Thu, Dec 25, 2014 at 03:36:15PM +0100, Zbigniew Jędrzejewski-Szmek wrote: >> On Wed, Dec 24, 2014 at 10:37:50AM -0200, Marcos Felipe Rasia de Mello wrote: >> > Hi, >> > >> > I have a system service that runs with a normal user account >>

Re: [systemd-devel] Variable expansion in ConditionPathExists

2014-12-25 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 25, 2014 at 03:36:15PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Dec 24, 2014 at 10:37:50AM -0200, Marcos Felipe Rasia de Mello wrote: > > Hi, > > > > I have a system service that runs with a normal user account > > ([Service] User=bla). I tried > > > > [Unit] > > ConditionP

Re: [systemd-devel] Variable expansion in ConditionPathExists

2014-12-25 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Dec 24, 2014 at 10:37:50AM -0200, Marcos Felipe Rasia de Mello wrote: > 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/b

[systemd-devel] Variable expansion in ConditionPathExists

2014-12-24 Thread Marcos Felipe Rasia de Mello
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 (exp