1SYSTEMD-BATTERY-CHECK.SERVICE(s8y)stemd-battery-chSeYcSkTEMD-BATTERY-CHECK.SERVICE(8)
2
3
4
6 systemd-battery-check.service, systemd-battery-check - Check battery
7 level whether there's enough charge, and power off if not.
8
10 systemd-battery-check.service
11
12 /usr/lib/systemd/systemd-battery-check [OPTIONS...]
13
15 systemd-battery-check.service is used to check the battery level during
16 the early boot stage to determine whether there's sufficient battery
17 power to carry on with the booting process.
18
19 systemd-battery-check returns success if the device is connected to an
20 AC power source or if the battery charge is greater than 5%. It returns
21 failure otherwise.
22
24 The following options are understood by systemd-battery-check:
25
26 -h, --help
27 Print a short help text and exit.
28
29 --version
30 Print a short version string and exit.
31
33 On success (running on AC power or battery capacity greater than 5%), 0
34 is returned, a non-zero failure code otherwise.
35
37 The following variables are understood:
38
39 systemd.battery-check=BOOL
40 Takes a boolean. If specified with false, systemd-battery-check
41 command will return immediately with exit status 0 without checking
42 battery capacity and AC power existence, and the service
43 systemd-battery-check.service will succeed. This may be useful when
44 the command wrongly detects and reports battery capacity percentage
45 or AC power existence, or when you want to boot the system
46 forcibly.
47
49 systemd(1)
50
51
52
53systemd 254 SYSTEMD-BATTERY-CHECK.SERVICE(8)