From 3a5995c410e52ebd7b535d2e4275286f87deb361 Mon Sep 17 00:00:00 2001 From: Pradeep Tarakar Date: Mon, 6 Oct 2025 21:40:46 +0530 Subject: [PATCH] systemctl-is-active: add page (#18434) --- pages/linux/systemctl-is-active.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/systemctl-is-active.md diff --git a/pages/linux/systemctl-is-active.md b/pages/linux/systemctl-is-active.md new file mode 100644 index 0000000000..d9b19978fd --- /dev/null +++ b/pages/linux/systemctl-is-active.md @@ -0,0 +1,20 @@ +# systemctl is-active + +> Check if one or more systemd units are active. +> More information: . + +- Check whether a unit is active: + +`systemctl is-active {{unit}}` + +- Check whether multiple units are active: + +`systemctl is-active {{unit1 unit2 ...}}` + +- Check whether a unit is active without printing the state to `stdout`: + +`systemctl is-active {{[-q|--quiet]}} {{unit}}` + +- Check whether a user unit is active: + +`systemctl is-active --user {{unit}}`