[packages/postgrey] restored daemon() invocation

gotar gotar at pld-linux.org
Thu Aug 9 19:10:28 CEST 2018


commit 51133ff813b7f5c0034881c74644664df687af5d
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Thu Aug 9 19:09:16 2018 +0200

    restored daemon() invocation

 postgrey.init | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/postgrey.init b/postgrey.init
index 81175d7..24e5a5e 100644
--- a/postgrey.init
+++ b/postgrey.init
@@ -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
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list