bin/server: add basic status overview
This commit is contained in:
parent
2bc7ba8dff
commit
b3af695101
|
@ -4,6 +4,7 @@ alias sc="sudo systemctl"
|
||||||
alias scs="sudo systemctl status"
|
alias scs="sudo systemctl status"
|
||||||
alias sce="sudo systemctl enable --now"
|
alias sce="sudo systemctl enable --now"
|
||||||
alias scr="sudo systemctl reload-or-restart"
|
alias scr="sudo systemctl reload-or-restart"
|
||||||
|
alias status="sudo systemctl list-units --failed || service --status-all; tmux ls; sudo docker ps || sudo systemctl status docker"
|
||||||
|
|
||||||
# Diff recursively
|
# Diff recursively
|
||||||
difr() { diff --color=always --unified=1 --recursive "$@" | less --RAW-CONTROL-CHARS --quit-on-intr --quit-if-one-screen; }
|
difr() { diff --color=always --unified=1 --recursive "$@" | less --RAW-CONTROL-CHARS --quit-on-intr --quit-if-one-screen; }
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh -x
|
#!/bin/sh -x
|
||||||
|
sudo systemctl list-units --failed
|
||||||
tmux ls
|
tmux ls
|
||||||
sudo docker ps || sudo systemctl status docker
|
sudo docker ps || sudo systemctl status docker
|
||||||
zulips status
|
zulips status
|
||||||
|
|
Loading…
Reference in New Issue