[systemd-devel] Q: ConditionPathExists=

Josef Moellers jmoellers at suse.de
Tue Jun 4 11:53:20 UTC 2019


On 04.06.19 13:32,  Ulrich Windl  wrote:
> Hi!
> 
> I have a question for ConditionPathExists:
> If I specify two files like "ConditionPathExists=/etc/idredir.conf /etc/isredir.conf", I get a "start condition failed" even if both files exist.
> 
> There's also some confusion where exactly a pipe sysmbol has to be placed:
>            If multiple conditions are specified, the unit will be executed if
>            all of them apply (i.e. a logical AND is applied). Condition checks
>            can be prefixed with a pipe symbol (|) in which case a condition
>            becomes a triggering condition. If at least one triggering
> 
> Do I have to write "|ConditionPathExists=..." or "ConditionPathExists=|..."?
The second.

Josef
-- 
SUSE Linux GmbH
Maxfeldstrasse 5
90409 Nuernberg
Germany
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)


More information about the systemd-devel mailing list