How do i check the overall health of systemd managed server?
-
$ systemctl is-system-running running
One of many types of system status see table below:
is-system-running Checks whether the system is operational. This returns success when the system is fully up and running, meaning not in startup, shutdown or maintenance mode. Failure is returned otherwise. In addition, the current state is printed in a short string to standard output, see table below. Use --quiet to suppress this output. Table 2. Manager Operational States +-------------+----------------------------+ |Name | Description | +-------------+----------------------------+ |initializing | Early bootup, before | | | basic.target is reached or | | | the maintenance state | | | entered. | +-------------+----------------------------+ |starting | Late bootup, before the | | | job queue becomes idle for | | | the first time, or one of | | | the rescue targets are | | | reached. | +-------------+----------------------------+ |running | The system is fully | | | operational. | +-------------+----------------------------+ |degraded | The system is operational | | | but one or more units | | | failed. | +-------------+----------------------------+ |maintenance | The rescue or emergency | | | target is active. | +-------------+----------------------------+ |stopping | The manager is shutting | | | down. | +-------------+----------------------------+
© Lightnetics 2024