[tor-commits] [gettor/master] Update gettor_check script

hiro at torproject.org hiro at torproject.org
Fri Oct 4 17:44:46 UTC 2019


commit 814ad198ba042b406ac40fee1a72a3b87e8bec6a
Author: hiro <hiro at torproject.org>
Date:   Fri Oct 4 19:44:42 2019 +0200

    Update gettor_check script
---
 bin/gettor_check | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/bin/gettor_check b/bin/gettor_check
index 38daea7..2036658 100755
--- a/bin/gettor_check
+++ b/bin/gettor_check
@@ -9,17 +9,12 @@
 #
 # :license: This is Free Software. See LICENSE for license information.
 
-cd /home/gettor/gettor/;
-virtualenv /home/gettor/gettor/venv
-source /home/gettor/gettor/venv/bin/activate
-
 python3 /home/gettor/gettor/scripts/check_service $1
 
-# store exit status
-# status=$?
-#
-# if test $status -ne 0
-# then
-#   /home/gettor/gettor/bin/gettor_service start
-# fi
-# deactivate
+store exit status
+status=$?
+
+if test $status -ne 0
+then
+  /home/gettor/gettor/bin/gettor_service start
+fi



More information about the tor-commits mailing list