[systemd-devel] several Conditions (AND or OR)

Mike Kazantsev mk.fraggod at gmail.com
Mon Feb 7 22:41:51 PST 2011


On Mon, 7 Feb 2011 14:24:32 +0300
Alexey Shabalin <a.shabalin at gmail.com> wrote:

> Hello!
> I need define several conditions in [Unit].
> ConditionPathExists=/sbin/startevms
> ConditionKernelCommandLine=!noevms
> Service must run only if both conditions is true.
> Now service run if at least one condition is true.
> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2)
> 

You can create two units, depending on each other, for AND case.

-- 
Mike Kazantsev // fraggod.net




More information about the systemd-devel mailing list