[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] report facilitator service status correctly



commit 564e75cdbd5128968288afb3da583be5413e4b6c
Author: Ximin Luo <infinity0@xxxxxxxxxxxxxx>
Date:   Tue Jul 8 11:54:03 2014 +0100

    report facilitator service status correctly
---
 facilitator/init.d/fp-facilitator.in     |    2 +-
 facilitator/init.d/fp-reg-decryptd.in    |    2 +-
 facilitator/init.d/fp-registrar-email.in |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/facilitator/init.d/fp-facilitator.in b/facilitator/init.d/fp-facilitator.in
index 9e1b68a..78779f7 100755
--- a/facilitator/init.d/fp-facilitator.in
+++ b/facilitator/init.d/fp-facilitator.in
@@ -104,7 +104,7 @@ case "$1" in
 	esac
 	;;
   status)
-       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
        ;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"
diff --git a/facilitator/init.d/fp-reg-decryptd.in b/facilitator/init.d/fp-reg-decryptd.in
index 2158701..464a6c6 100755
--- a/facilitator/init.d/fp-reg-decryptd.in
+++ b/facilitator/init.d/fp-reg-decryptd.in
@@ -103,7 +103,7 @@ case "$1" in
 	esac
 	;;
   status)
-       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
        ;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"
diff --git a/facilitator/init.d/fp-registrar-email.in b/facilitator/init.d/fp-registrar-email.in
index d046b8e..38540d4 100755
--- a/facilitator/init.d/fp-registrar-email.in
+++ b/facilitator/init.d/fp-registrar-email.in
@@ -102,7 +102,7 @@ case "$1" in
 	esac
 	;;
   status)
-       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
        ;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits