summaryrefslogtreecommitdiff
path: root/etc/init.d
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-11 19:49:54 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-11 19:49:54 +0000
commit43cb18876beb3b7ea19537f9db314f4bc0d4ab1b (patch)
treee283b49724891f85df797c9e76bbe9569964f42d /etc/init.d
parentclient1 default config without crypto (diff)
working version with crypto
Diffstat (limited to 'etc/init.d')
-rw-r--r--etc/init.d/anytun6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/init.d/anytun b/etc/init.d/anytun
index 90d7670..64a3186 100644
--- a/etc/init.d/anytun
+++ b/etc/init.d/anytun
@@ -15,7 +15,7 @@ DAEMON=/usr/sbin/anytun
ANYTUNCONFIG=/usr/bin/anytun-config
CONTROLDAEMON=/usr/bin/anytun-controld
CHROOTDIR='/var/run/anytun'
-DAEMONOPTS="--chroot --username nobody --chroot-dir $CHROOTDIR"
+# DAEMONOPTS="--chroot --username nobody --chroot-dir $CHROOTDIR"
NAME=anytun
DESC=anytun
CONFIG_DIR=/etc/anytun
@@ -59,9 +59,9 @@ start_configd () {
$ANYTUNCONFIG $DAEMONARG >> $VARCONFIG_DIR/$NAME
done
CONTROLHOST=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e 'control-host' | sed 's/^/ --/'`
- $CONTROLDAEMON -f $VARCONFIG_DIR/$NAME $CONTROLHOST \
+ $CONTROLDAEMON -f $VARCONFIG_DIR/$NAME $DAEMONOPTS $CONTROLHOST \
--write-pid $VARCONFIG_DIR/$NAME.pid
- rm -f $VARCONFIG_DIR/$NAME
+ # rm -f $VARCONFIG_DIR/$NAME
fi
}
stop_configd () {