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

2011-02-07 Thread Alexey Shabalin
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) -- Al

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

2011-02-07 Thread Gustavo Sverzut Barbieri
On Mon, Feb 7, 2011 at 9:24 AM, Alexey Shabalin 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 ch

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

2011-02-07 Thread Mike Kazantsev
On Mon, 7 Feb 2011 14:24:32 +0300 Alexey Shabalin 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

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

2011-02-08 Thread Lennart Poettering
On Mon, 07.02.11 14:24, Alexey Shabalin (a.shaba...@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

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

2011-02-08 Thread Alexey Shabalin
On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering wrote: > On Mon, 07.02.11 14:24, Alexey Shabalin wrote: >> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) > I'd very much prefer not having to extend the condition language to more > than what it currently covers. So, before

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

2011-02-08 Thread Lennart Poettering
On Tue, 08.02.11 13:47, Alexey Shabalin (a.shaba...@gmail.com) wrote: > > On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering wrote: > > On Mon, 07.02.11 14:24, Alexey Shabalin wrote: > >> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) > > I'd very much prefer not having to

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

2011-02-08 Thread Andrey Borzenkov
On Tue, Feb 8, 2011 at 1:47 PM, Alexey Shabalin wrote: > On Tue, Feb 8, 2011 at 12:21 PM, Lennart Poettering  wrote: >> On Mon, 07.02.11 14:24, Alexey Shabalin wrote: >>> How chenge (Condition1 || Condition2)  to (Condition1 && Condition2) >> I'd very much prefer not having to extend the condition