From 039655a40c77f88e4f9ccc00824f2f483f22f2c1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 21 Feb 2011 22:07:55 +0100 Subject: unit: introduce ConditionVirtualization= --- man/systemd.unit.xml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'man/systemd.unit.xml') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 14ec4561b2..fa8821afe5 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -575,6 +575,7 @@ ConditionPathExists= ConditionDirectoryNotEmpty= ConditionKernelCommandLine= + ConditionVirtualization= ConditionNull= Before starting a unit @@ -615,7 +616,24 @@ assignment. In the latter case the exact assignment is looked for with right and left hand side - matching. Finally, + matching. ConditionVirtualization= + may be used to check whether the + system is executed in a virtualized + environment and optionally test + whether it is a specific + implementation. Takes either boolean + value to check if being executed in any + virtual environment or one of the + qemu, + kvm, + vmware, + microsoft, + oracle, + xen, + openvz to test + against a specific implementation. The + test may be negated by prepending an + exclamation mark. Finally, ConditionNull= may be used to add a constant condition check value to the unit. It takes a @@ -623,9 +641,9 @@ false the condition will always fail, otherwise succeed. If multiple conditions are - specified the unit will be executed - if at least one of them applies - (i.e. a logical OR is + specified the unit will be executed if + at least one of them applies (i.e. a + logical OR is applied). -- cgit v1.2.3-54-g00ecf