]> git.pld-linux.org Git - packages/postgrey.git/commitdiff
restored daemon() invocation
authorTomasz Pala <gotar@pld-linux.org>
Thu, 9 Aug 2018 17:09:16 +0000 (19:09 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Thu, 9 Aug 2018 17:09:16 +0000 (19:09 +0200)
postgrey.init

index 81175d71cbb92588894fdebfa024de85589d4981..24e5a5e24c8c6c9cc5e2c2a70357d6996d62ba6e 100644 (file)
@@ -40,14 +40,9 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/postgrey ]; then
                msg_starting postgrey
-               /usr/sbin/postgrey -d --pidfile=/var/run/postgrey.pid $OPTIONS
+               daemon /usr/sbin/postgrey -d --pidfile=/var/run/postgrey.pid $OPTIONS
                RETVAL=$?
-               if [ $RETVAL -eq 0 ]; then
-                       ok
-                       touch /var/lock/subsys/postgrey
-               else
-                       fail
-               fi
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/postgrey
        else
                msg_already_running postgrey
        fi
This page took 0.212874 seconds and 4 git commands to generate.