projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a6b8235850ff2c65add6abc98d7426de395d7c49
[openwrt/svn-archive/archive.git]
/
net
/
tor
/
files
/
tor.init
1
#!/bin/sh /etc/rc.common
2
# Copyright (C) 2006 OpenWrt.org
3
START
=
50
4
5
BIN
=
tor
6
DEFAULT
=/
etc
/
default
/
$BIN
7
LOG_D
=/
var
/
log
/
$BIN
8
RUN_D
=/
var
/
run
9
PID_F
=
$RUN_D
/
$BIN
.pid
10
11
start
() {
12
[
-f
$DEFAULT
] &&
.
$DEFAULT
13
mkdir
-p
$LOG_D
14
mkdir
-p
$RUN_D
15
$BIN $OPTIONS
16
}
17
18
stop
() {
19
[
-f
$PID_F
] &&
kill
$
(
cat
$PID_F
)
20
}
21