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 f53d7e6..32baa03 100644 (file)
@@ -1,2 +1,2 @@
 CONFIG="/etc/openvpn/server.conf"
-OPTIONS="--config $CONFIG --daemon"
+OPTIONS="--config $CONFIG"
index 2d90230..5529b91 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() {