systemd-battery-check.service
(8)Check battery level whether there's enough charge, and power off if not
systemd-battery-check.service /usr/lib/systemd/systemd-battery-check [OPTIONS...]
Options
2-h--helpPrint a short help text and exit.
--versionPrint a short version string and exit.
DESCRIPTION
This service checks the presence of an external power supply and the battery level during the early boot stage to determine whether there is sufficient power to carry on with the booting process.
systemd-battery-check returns success if the device is connected to an AC power source or if the battery charge is greater than 5%. It returns failure otherwise.
EXIT STATUS
KERNEL COMMAND LINE
The following variables are understood:
systemd.battery_check=BOOL
Takes a boolean. If specified with false,
systemd-battery-check command will return immediately with exit status
0 without checking battery capacity and AC power existence, and the service
systemd-battery-check.service will succeed. This may be useful when the
command wrongly detects and reports battery capacity percentage or AC power
existence, or when you want to boot the system forcibly.
Added in version 254.