Fixed postfix init script status
authormaniacikarus <maniacikarus@ipfire.org>
Fri, 8 May 2009 09:40:36 +0000 (11:40 +0200)
committermaniacikarus <maniacikarus@ipfire.org>
Fri, 8 May 2009 09:40:36 +0000 (11:40 +0200)
src/initscripts/init.d/postfix

index cc819754316ab4d1ae8da82f0e87fbc2068515f2..2620a4eb3ee5ab780ca18ab210c6dc07f071180c 100644 (file)
@@ -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
                ;;
 
        *)