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

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



commit 814ad198ba042b406ac40fee1a72a3b87e8bec6a
Author: hiro <hiro@xxxxxxxxxxxxxx>
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

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