openvpn: clean up and fix the init script
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 31 Oct 2013 17:36:24 +0000 (17:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 31 Oct 2013 17:36:24 +0000 (17:36 +0000)
commita24c6ad74fbe820ab23c20c214584a0117e83d95
tree92fb7de9182bb5c3a0471cb0d9476cfd5430be68
parentf5e0757dab76b924a2b504471ce64fa2e71a0cc0
openvpn: clean up and fix the init script

- clean up duplication of procd instance handling code
- using --cd *after* --config is rather pointless
- to be able to log errors properly, --syslog needs to be passed before --config
- tell procd about the generated or referenced config file instead of
  the uci file. this avoids having to restart all instances if only one
  of them changes.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38632 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/services/openvpn/files/openvpn.init