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 PATTERN….
- Check whether a unit is active:
systemctl is-active
- Check whether multiple units are active:
systemctl is-active
- Check whether a unit is active without printing the state to
stdout:
systemctl is-active
- Check whether a user unit is active:
systemctl is-active --user
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
