commit e6ff7208cec7c9d5df023b4cfafcca5093243314
Author: Tomasz Pala <go...@pld-linux.org>
Date:   Tue Aug 7 10:43:16 2018 +0200

    pidof -x postgrey doesn't return PID, pass pidfile to status(), fixed start 
msg

 postgrey.init | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/postgrey.init b/postgrey.init
index 1aacced..81175d7 100644
--- a/postgrey.init
+++ b/postgrey.init
@@ -42,7 +42,12 @@ case "$1" in
                msg_starting postgrey
                /usr/sbin/postgrey -d --pidfile=/var/run/postgrey.pid $OPTIONS
                RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/postgrey
+               if [ $RETVAL -eq 0 ]; then
+                       ok
+                       touch /var/lock/subsys/postgrey
+               else
+                       fail
+               fi
        else
                msg_already_running postgrey
        fi
@@ -72,7 +77,7 @@ case "$1" in
        fi
        ;;
   status)
-       status postgrey
+       status --pidfile /var/run/postgrey.pid postgrey
        exit $?
        ;;
   *)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postgrey.git/commitdiff/e6ff7208cec7c9d5df023b4cfafcca5093243314

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to