mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
systemctl: is-failed: check if system is degraded when no unit given
Closes #3335
This commit is contained in:
@@ -135,6 +135,8 @@ systemctl restart "$UNIT_NAME"
|
||||
systemctl stop "$UNIT_NAME"
|
||||
(! systemctl is-active "$UNIT_NAME")
|
||||
|
||||
assert_eq "$(systemctl is-system-running)" "$(systemctl is-failed)"
|
||||
|
||||
# enable/disable/preset
|
||||
test_enable_disable_preset() {
|
||||
(! systemctl is-enabled "$@" "$UNIT_NAME")
|
||||
|
||||
Reference in New Issue
Block a user