From a6388d602353137123f48c8c874d473553f62821 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 15 Mar 2021 15:29:58 +0100 Subject: [PATCH] Motd: Check uwsgi process and port --- 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 b3a03f3..d2cd016 100755 --- a/update-motd.d/20-service +++ b/update-motd.d/20-service @@ -195,6 +195,13 @@ if [ "$(command -v mysqld)" ]; then printf '%b' "\\n${MSG}" fi ## ]]] +## IF UWSGI [[[ +if [ "$(command -v uwsgi)" ]; then + MSG=$(process_info "uwsgi" '') + MSG=$(service_info "8888" "${MSG}") + printf '%b' "\\n${MSG}" +fi +## ]]] ## IF ZFS [[[ if [ "$(command -v zfs)" ]; then MSG=$(process_info "zed" '')