From: Ian Kelling Date: Wed, 16 Oct 2019 21:28:04 +0000 (-0400) Subject: watch mail queue length X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=12e7a0f3de4f4f1b1f8e56e7cbe2e972027e0a42 watch mail queue length --- diff --git a/system-status b/system-status index 460d63b..b8e854d 100755 --- a/system-status +++ b/system-status @@ -35,6 +35,10 @@ write-status() { chars+=("MAILPING!") fi + qlen=$(/usr/sbin/exim -bpc) + if ((qlen)); then + chars+=("q $qlen") + fi if ! make -q ~/.local/distro-begin || [[ $(<~/.local/distro-begin) != 0 ]]; then chars+=("DISTRO-BEGIN!")