From e46c21b042f112cabfada99b89e160bcbe825ecf Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 15 Mar 2021 15:34:47 +0100 Subject: [PATCH] Motd: Monitor ZNC process and ports --- update-motd.d/20-service | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/update-motd.d/20-service b/update-motd.d/20-service index d2cd016..1dd75dd 100755 --- a/update-motd.d/20-service +++ b/update-motd.d/20-service @@ -270,6 +270,13 @@ if [ "$(command -v redis-server)" ]; then printf '%b' "\\n${MSG}" fi ## ]]] +## IF ZNC [[[ +if [ "$(command -v znc)" ]; then + MSG=$(process_info "znc" '') + MSG=$(service_info "1334 1335" "${MSG}") + printf '%b' "\\n${MSG}" +fi +## ]]] ## Security [[[ ### IF FAIL2BAN [[[ if [ "$(command -v fail2ban-server)" ]; then