blob: cdeb865af354fcbef96e3ef78bf9d31210c041b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
#
# tor The Onion Router
#
# Startup/shutdown script for tor. This is a wrapper around torctl;
# torctl does the actual work in a relatively system-independent, or at least
# distribution-independent, way, and this script deals with fitting the
# whole thing into the conventions of the particular system at hand.
# This script is a modified contrb/tor.sh, for use on Slackware.
TORCTL=/usr/bin/torctl
# torctl will use these environment variables
TORUSER=tor
export TORUSER
case "$1" in
start)
$TORCTL start
;;
stop)
$TORCTL stop
;;
restart)
$TORCTL restart
;;
reload)
$TORCTL reload
;;
status)
$TORCTL status
;;
*)
echo "Usage: $0 (start|stop|restart|reload|status)"
esac
|