summaryrefslogtreecommitdiff
path: root/man/systemd.unit.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-12-25 16:29:51 +0100
committerLennart Poettering <lennart@poettering.net>2012-12-31 21:24:26 +0100
commit240dbaa44f8e5ad51775c776fc3ce9cd2f19f037 (patch)
tree607e02cd59aef350e3b32698742cd1e00bc71d7c /man/systemd.unit.xml
parent3ec90c030081111900597ec5475d880893f10a76 (diff)
unit: add ConditionACPower=
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r--man/systemd.unit.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index bf91b4eb13..8570815ad4 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -790,6 +790,7 @@
<term><varname>ConditionSecurity=</varname></term>
<term><varname>ConditionCapability=</varname></term>
<term><varname>ConditionHost=</varname></term>
+ <term><varname>ConditionACPower=</varname></term>
<term><varname>ConditionNull=</varname></term>
<listitem><para>Before starting a unit
@@ -959,6 +960,23 @@
The test may be negated by prepending
an exclamation mark.</para>
+ <para><varname>ConditionACPower=</varname>
+ may may be used to check whether the
+ system has AC power, or is exlcusively
+ battery powered at the time of
+ activation of the unit. This takes a
+ boolean argument. If set to
+ <varname>true</varname> the condition
+ will hold only if at least one AC
+ connector of the system is connected
+ to a power source, or if no AC
+ connectors are known. Conversely, if
+ set to <varname>false</varname> the
+ condition will hold only if there is
+ at least one AC connector known and
+ all AC connectors are disconnected
+ from a power source.</para>
+
<para>Finally,
<varname>ConditionNull=</varname> may
be used to add a constant condition