2025-12-16 10:20:31 -07:00
|
|
|
# systemctl is-system-running
|
|
|
|
|
|
|
|
|
|
> Check the current state of the system.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-system-running>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Check whether the system is operational and print the current state:
|
|
|
|
|
|
|
|
|
|
`systemctl is-system-running`
|
|
|
|
|
|
|
|
|
|
- Check and print the current state quietly (no output, only exit status):
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`systemctl is-system-running {{[-q|--quiet]}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Wait until the boot process is completed before printing the current state:
|
|
|
|
|
|
|
|
|
|
`systemctl is-system-running --wait`
|