Fix openvpn init script (#2284)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Sep 2007 19:36:06 +0000 (19:36 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 2 Sep 2007 19:36:06 +0000 (19:36 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8576 3c298f89-4303-0410-b956-a3cf2f4a3e73

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() {