systemctl-is-active: add page (#18434)

This commit is contained in:
Pradeep Tarakar
2025-10-06 19:10:46 +03:00
committed by GitHub
parent 2b6e1ed638
commit 3a5995c410
+20
View File
@@ -0,0 +1,20 @@
# systemctl is-active
> Check if one or more systemd units are active.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#is-active%20PATTERN%E2%80%A6>.
- 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}}`