Skip to content

Commit 3a5995c

Browse files
authored
systemctl-is-active: add page (#18434)
1 parent 2b6e1ed commit 3a5995c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pages/linux/systemctl-is-active.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)