We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6e1ed commit 3a5995cCopy full SHA for 3a5995c
pages/linux/systemctl-is-active.md
@@ -0,0 +1,20 @@
1
+# systemctl is-active
2
+
3
+> Check if one or more systemd units are active.
4
+> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-active%20PATTERN%E2%80%A6>.
5
6
+- Check whether a unit is active:
7
8
+`systemctl is-active {{unit}}`
9
10
+- Check whether multiple units are active:
11
12
+`systemctl is-active {{unit1 unit2 ...}}`
13
14
+- Check whether a unit is active without printing the state to `stdout`:
15
16
+`systemctl is-active {{[-q|--quiet]}} {{unit}}`
17
18
+- Check whether a user unit is active:
19
20
+`systemctl is-active --user {{unit}}`
0 commit comments