Motd: Monitor ZNC process and ports

This commit is contained in:
Jeremy Gardais 2021-03-15 15:34:47 +01:00
parent a6388d6023
commit e46c21b042
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 0 deletions

View File

@ -270,6 +270,13 @@ if [ "$(command -v redis-server)" ]; then
printf '%b' "\\n${MSG}" printf '%b' "\\n${MSG}"
fi fi
## ]]] ## ]]]
## IF ZNC [[[
if [ "$(command -v znc)" ]; then
MSG=$(process_info "znc" '')
MSG=$(service_info "1334 1335" "${MSG}")
printf '%b' "\\n${MSG}"
fi
## ]]]
## Security [[[ ## Security [[[
### IF FAIL2BAN [[[ ### IF FAIL2BAN [[[
if [ "$(command -v fail2ban-server)" ]; then if [ "$(command -v fail2ban-server)" ]; then