Is there any option that allow watching the status of a systemd
service in real time with systemctl
What I actually do:
systemctl status tor
For example:
systemctl watch tor
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYou could use the watch
command to watch the output of systemctl status tor
:
watch systemctl status tor
You can also follow the systemd logs for the service, which may also be useful:
journalctl -u tor -f
watch
? Using -c
doesn't seem to help
-c
option of watch
to interpret ANSI colour sequences, and the variable SYSTEMD_COLORS=1
to force systemctl
to output in colour. So the command would be watch -c SYSTEMD_COLORS=1 systemctl status tor
Dec 2, 2019 at 13:50
alias statuswatch='watch -c SYSTEMD_COLORS=1 systemctl status'