From: Luca Boccassi Date: Wed, 1 Feb 2023 19:29:11 +0000 (+0000) Subject: man: add page for systemd-ac-power X-Git-Tag: v253-rc2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8310229a04842d654a00c2d03a0f22d27904708e;p=thirdparty%2Fsystemd.git man: add page for systemd-ac-power It is now a supported executable, so add manpage. Fixes https://github.com/systemd/systemd/issues/26289 --- diff --git a/man/rules/meson.build b/man/rules/meson.build index 75197736b0f..c5b457bd7f9 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -856,6 +856,7 @@ manpages = [ ['shutdown', '8', [], ''], ['sysctl.d', '5', [], ''], ['systemctl', '1', [], ''], + ['systemd-ac-power', '1', [], ''], ['systemd-analyze', '1', [], 'ENABLE_ANALYZE'], ['systemd-ask-password-console.service', '8', diff --git a/man/systemd-ac-power.xml b/man/systemd-ac-power.xml new file mode 100644 index 00000000000..a4c9378cfd7 --- /dev/null +++ b/man/systemd-ac-power.xml @@ -0,0 +1,71 @@ + + + + + + + + systemd-ac-power + systemd + + + + systemd-ac-power + 1 + + + + systemd-ac-power + Report whether we are connected to an external power source + + + + + systemd-ac-power + OPTIONS + + + + + Description + + systemd-ac-power may be used to check whether the system + is running on AC power or not. By default it will simply return success (if we + can detect that we are running on AC power) or failure, with no output. + This can be useful for example to debug ConditionACPower= (see + systemd.unit5). + + + + Options + + The following options are understood: + + + + + + + Show result as text instead of just returning success or failure. + + + + + + + + + Exit status + + On success (running on AC power), 0 is returned, a non-zero failure code otherwise. + + + + See Also + + systemd1 + + + +