Fix openvpn init script (#2284)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 2 Sep 2007 19:36:06 +0000 (19:36 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 2 Sep 2007 19:36:06 +0000 (19:36 +0000)
SVN-Revision: 8576

net/openvpn/files/openvpn.default
net/openvpn/files/openvpn.init

index f53d7e6546101ab3dff5bf8eb3c34d406569d73d..32baa038e5eafa99cb69e6005dc78f0a7d1eaf2a 100644 (file)
@@ -1,2 +1,2 @@
 CONFIG="/etc/openvpn/server.conf"
-OPTIONS="--config $CONFIG --daemon"
+OPTIONS="--config $CONFIG"
index 2d90230c79c97b1cf7cc121474c00fb7efe5fb85..5529b91de07ff8ed28f1334a10f10dee144ef9cb 100644 (file)
@@ -10,7 +10,7 @@ PID_F=$RUN_D/$BIN.pid
 start() {
        [ -f $DEFAULT ] && . $DEFAULT
        mkdir -p $RUN_D
-       $BIN $OPTIONS
+       $BIN --writepid $RUN_D/$BIN.pid --daemon $OPTIONS
 }
 
 stop() {