On Mon, Feb 7, 2011 at 9:24 AM, 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 true. > How chenge (Condition1 || Condition2) to (Condition1 && Condition2)
I'd say that for these corner-cases we could simply have a Condition that runs a binary and checks for return 0/1, it could be a shell script or C binary that does the check. I fear if we solve it with own syntax would make it too complex for something that is barely used... but anyway it could be: Condition=(PathExists=/sbin/startevms and KernelCommandLine=!noevms) or (SomethingElse...) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel