From b3af695101b0af55221915321bd4e9808157f5c8 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 20 Jan 2023 08:40:41 +0100 Subject: [PATCH] bin/server: add basic status overview --- .bash_aliases | 1 + .local/bin/server/status | 1 + 2 files changed, 2 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 9577b79..d45ca96 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -4,6 +4,7 @@ alias sc="sudo systemctl" alias scs="sudo systemctl status" alias sce="sudo systemctl enable --now" 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 difr() { diff --color=always --unified=1 --recursive "$@" | less --RAW-CONTROL-CHARS --quit-on-intr --quit-if-one-screen; } diff --git a/.local/bin/server/status b/.local/bin/server/status index 6858b97..7d47ffd 100755 --- a/.local/bin/server/status +++ b/.local/bin/server/status @@ -1,4 +1,5 @@ #!/bin/sh -x +sudo systemctl list-units --failed tmux ls sudo docker ps || sudo systemctl status docker zulips status