From fe688942e0224f85da3cfe0010ec785e938cec1c Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Fri, 11 Apr 2008 15:53:48 +0000 Subject: added chroot support to anytun --- etc/init.d/anytun | 4 ++-- 1 file 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 -- cgit v1.2.3