projects
/
openwrt
/
svn-archive
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3fbadd
)
Fix tor pid file permission (#3834)
author
Florian Fainelli
<florian@openwrt.org>
Thu, 18 Sep 2008 08:17:48 +0000
(08:17 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Thu, 18 Sep 2008 08:17:48 +0000
(08:17 +0000)
SVN-Revision: 12621
net/tor/files/tor.init
patch
|
blob
|
history
diff --git
a/net/tor/files/tor.init
b/net/tor/files/tor.init
index 6944e88685c3b59a6bdeadec0edc3383d39aebc5..daa329c3c4fd4e9a4a639285f2b626a621a06948 100644
(file)
--- a/
net/tor/files/tor.init
+++ b/
net/tor/files/tor.init
@@
-16,6
+16,7
@@
start() {
[ -d $LIB_D ] || mkdir -p $LOG_D
[ -d $LIB_D ] || ( mkdir -p $LIB_D && chown $RUN_USER:$RUN_GROUP $LIB_D )
[ -d $RUN_D ] || mkdir -p $RUN_D
+ [ -f $PID_F ] || ( touch $PID_F && chown $RUN_USER:$RUN_GROUP $PID_F )
$BIN $OPTIONS
}