From aab149bc7bb4f5274b8ad3f6bb3ee15ebc9a5e6d Mon Sep 17 00:00:00 2001 From: hellojukay Date: Tue, 1 Sep 2020 22:31:47 +0800 Subject: [PATCH] systemctl: add is-active and is-enabled examples (#4282) --- pages/linux/systemctl.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/linux/systemctl.md b/pages/linux/systemctl.md index 04db9aa21c..1e8bb09e91 100644 --- a/pages/linux/systemctl.md +++ b/pages/linux/systemctl.md @@ -1,6 +1,7 @@ # systemctl > Control the systemd system and service manager. +> More information: . - List failed units: @@ -25,3 +26,11 @@ - Reload systemd, scanning for new or changed units: `systemctl daemon-reload` + +- Check if a unit is active: + +`systemctl is-active {{unit}}` + +- Check if a unit is enabled: + +`systemctl is-enabled {{unit}}`