gettor_check 471 Bytes
Newer Older
Hiro's avatar
Hiro committed
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
#
# This file is part of GetTor, a Tor Browser distribution system.
#
# :authors: Hiro <hiro@torproject.org>
#           see also AUTHORS file
#
# :copyright:   (c) 2008-2019, The Tor Project, Inc.
#
# :license: This is Free Software. See LICENSE for license information.

Hiro's avatar
Hiro committed
12
python3 /home/gettor/gettor/scripts/check_service $1
Hiro's avatar
Hiro committed
13

Hiro's avatar
Hiro committed
14
#store exit status
Hiro's avatar
Hiro committed
15
16
17
18
status=$?

if test $status -ne 0
then
Hiro's avatar
Hiro committed
19
  cd /home/gettor/gettor
Hiro's avatar
Hiro committed
20
21
  /home/gettor/gettor/bin/gettor_service start
fi