From f1775178caa7e659814e51ad5d5d094c7adb3b1c Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Fri, 8 May 2009 11:40:36 +0200 Subject: [PATCH] Fixed postfix init script status --- src/initscripts/init.d/postfix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/initscripts/init.d/postfix b/src/initscripts/init.d/postfix index cc81975431..2620a4eb3e 100644 --- a/src/initscripts/init.d/postfix +++ b/src/initscripts/init.d/postfix @@ -47,7 +47,12 @@ case "$1" in $0 start ;; status) - statusproc /usr/lib/postfix/master + PID=`pidof /usr/lib/postfix/master` + MPID=`cat /var/spool/postfix/pid/master.pid` + if [ $MPID = $PID ]; then + echo -e "${INFO}postfix is running with Process"\ + "ID(s) ${MPID}.${NORMAL}" + fi ;; *) -- 2.39.5