diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-04-11 15:53:48 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-04-11 15:53:48 +0000 |
commit | fe688942e0224f85da3cfe0010ec785e938cec1c (patch) | |
tree | 4fdb225a5b310b161dac1d0b894b5babb5691971 /etc/init.d | |
parent | basic init script (no multi connection support) (diff) |
added chroot support to anytun
Diffstat (limited to 'etc/init.d')
-rw-r--r-- | etc/init.d/anytun | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/anytun b/etc/init.d/anytun index 9aa9a17..f8ac738 100644 --- a/etc/init.d/anytun +++ b/etc/init.d/anytun @@ -13,7 +13,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/anytun CHROOTDIR='/var/run/anytun' -DAEMONOPTS="--chroot --username anytun --chroot-dir $CHROOTDIR" +DAEMONOPTS="--chroot --username nobody --chroot-dir $CHROOTDIR" NAME=anytun DESC=anytun CONFIG_DIR=/etc/anytun @@ -30,7 +30,7 @@ start_vpn () { if [ -f $CONFIG_DIR/$NAME/config ] ; then DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/ --/' | xargs echo` $DAEMON --write-pid /var/run/anytun.$NAME.pid \ - $DAEMONARG > /dev/null || STATUS="FAILED" + $DAEMONOPTS $DAEMONARG > /dev/null || STATUS="FAILED" else STATUS="no config found" fi |