projects
/
anytun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8106fec
)
Rever init script change
author
Michael Prokop
<mika@debian.org>
Mon, 14 Dec 2009 16:54:37 +0000
(17:54 +0100)
committer
Michael Prokop
<mika@debian.org>
Mon, 14 Dec 2009 16:54:37 +0000
(17:54 +0100)
etc/init.d/anytun
patch
|
blob
|
history
diff --git
a/etc/init.d/anytun
b/etc/init.d/anytun
index
6953b5d
..
3bf1e91
100755
(executable)
--- a/
etc/init.d/anytun
+++ b/
etc/init.d/anytun
@@
-36,7
+36,8
@@
start_vpn () {
fi
test -d $VARRUN_DIR || mkdir -p $VARRUN_DIR
DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/--/' | tr '\n' ' '`
- $DAEMON --write-pid /var/run/uanytun.$NAME.pid $POSTUP $DAEMONOPTS $DAEMONARG || STATUS="FAILED"
+ $DAEMON --write-pid $VARRUN_DIR/$NAME.pid $POSTUP \
+ $DAEMONOPTS $DAEMONARG || STATUS="FAILED"
else
STATUS="no config found"
fi