1SYSTEMD-AC-POWER(1)            systemd-ac-power            SYSTEMD-AC-POWER(1)
2
3
4

NAME

6       systemd-ac-power - Report whether we are connected to an external power
7       source
8

SYNOPSIS

10       systemd-ac-power [OPTIONS...]
11

DESCRIPTION

13       systemd-ac-power may be used to check whether the system is running on
14       AC power or not. By default it will simply return success (if we can
15       detect that we are running on AC power) or failure, with no output.
16       This can be useful for example to debug ConditionACPower= (see
17       systemd.unit(5)).
18

OPTIONS

20       The following options are understood:
21
22       -v, --verbose
23           Show result as text instead of just returning success or failure.
24
25       -h, --help
26           Print a short help text and exit.
27
28       --version
29           Print a short version string and exit.
30

EXIT STATUS

32       On success (running on AC power), 0 is returned, a non-zero failure
33       code otherwise.
34

SEE ALSO

36       systemd(1)
37
38
39
40systemd 253                                                SYSTEMD-AC-POWER(1)
Impressum