Rever init script change
authorMichael Prokop <mika@debian.org>
Mon, 14 Dec 2009 16:54:37 +0000 (17:54 +0100)
committerMichael Prokop <mika@debian.org>
Mon, 14 Dec 2009 16:54:37 +0000 (17:54 +0100)
etc/init.d/anytun

index 6953b5d..3bf1e91 100755 (executable)
@@ -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