Fixed postfix init script status

This commit is contained in:
maniacikarus
2009-05-08 11:40:36 +02:00
parent 67c532f594
commit f1775178ca

View 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
;;
*)