[packages/postgrey] pidof -x postgrey doesn't return PID, pass pidfile to status(), fixed start msg
gotar
gotar at pld-linux.org
Tue Aug 7 10:44:21 CEST 2018
commit e6ff7208cec7c9d5df023b4cfafcca5093243314
Author: Tomasz Pala <gotar at 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
More information about the pld-cvs-commit
mailing list