SYSTEMD-BATTERY-CHECK.SERVICE(8) systemd-battery-check SYSTEMD-BATTERY-CHECK.SERVICE(8)

.SH "NAME" systemd-battery-check.service, systemd-battery-check - Check battery level whether there's enough charge, and power off if not

.SH "SYNOPSIS"

.PP systemd-battery-check.service

.HP 936u

**/usr/lib/systemd/systemd-battery-check**  
\[OPTIONS...]

.SH "DESCRIPTION"

.PP 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.

.PP **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.

.SH "OPTIONS"

.PP The following options are understood by **systemd-battery-check**:

.PP **-h**, **--help**

Print a short help text and exit.

.RE  
.PP **--version**

Print a short version string and exit.

.RE

.SH "EXIT STATUS"

.PP On success (running on AC power or battery capacity greater than 5%), 0 is returned, a non-zero failure code otherwise.

.SH "KERNEL COMMAND LINE"

.PP The following variables are understood:

.PP *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.

.RE

.SH "SEE ALSO"

.PP [**systemd**(1)](/man/os/systemd/systemd.1)

systemd 262.2

---

Document: systemd-battery-check.service(8) from systemd 262.2-r1 (Chainguard OS)
Source: https://github.com/systemd/systemd
