]> git.pld-linux.org Git - packages/postgrey.git/commitdiff
pidof -x postgrey doesn't return PID, pass pidfile to status(), fixed start msg
authorTomasz Pala <gotar@pld-linux.org>
Tue, 7 Aug 2018 08:43:16 +0000 (10:43 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Tue, 7 Aug 2018 08:43:16 +0000 (10:43 +0200)
postgrey.init

index 1aacced9d3ffdf37ae3c258a6d21633375ba4aa2..81175d71cbb92588894fdebfa024de85589d4981 100644 (file)
@@ -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 $?
        ;;
   *)
This page took 0.061172 seconds and 4 git commands to generate.