summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-18 17:47:13 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-19 15:55:08 +0100
commit2b60d7ea54d92ec0552f15f5725e16f697a628c3 (patch)
treeb87948207463c54a29e6193b6b8849f5e613284b
parent754f719af2631a0345aba4e8146140840de9c87e (diff)
downloadsystemd-2b60d7ea54d92ec0552f15f5725e16f697a628c3.tar.gz
man: document ConditionMemory= + ConditionCPUs=
-rw-r--r--man/systemd.unit.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 8f317c25a7..e9601569ff 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1002,6 +1002,8 @@
<term><varname>ConditionUser=</varname></term>
<term><varname>ConditionGroup=</varname></term>
<term><varname>ConditionControlGroupController=</varname></term>
+ <term><varname>ConditionMemory=</varname></term>
+ <term><varname>ConditionCPUs=</varname></term>
<!-- We do not document ConditionNull=
here, as it is not particularly
@@ -1256,6 +1258,24 @@
<option>blkio</option>, <option>memory</option>,
<option>devices</option>, and <option>pids</option>.</para>
+ <para><varname>ConditionMemory=</varname> verifies if the specified amount of system memory is
+ available to the current system. Takes a memory size in bytes as argument, optionally prefixed with a
+ comparison operator <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>=</literal>,
+ <literal>!=</literal>, <literal>&gt;=</literal>, <literal>&gt;</literal>. On bare-metal systems
+ compares the amount of physical memory in the system with the specified size, adhering to the
+ specified comparison operator. In containers compares the amount of memory assigned to the container
+ instead.</para>
+
+ <para><varname>ConditionCPUs=</varname> verifies if the specified number of CPUs is available to the
+ current system. Takes a number of CPUs as argument, optionally prefixed with a comparison operator
+ <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>=</literal>, <literal>!=</literal>,
+ <literal>&gt;=</literal>, <literal>&gt;</literal>. Compares the number of CPUs in the CPU affinity mask
+ configured of the service manager itself with the specified number, adhering to the specified
+ comparision operator. On physical systems the number of CPUs in the affinity mask of the service
+ manager usually matches the number of physical CPUs, but in special and virtual environments might
+ differ. In particular, in containers the affinity mask usually matches the number of CPUs assigned to
+ the container and not the physically available ones.</para>
+
<para>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