openvpn: clean up and fix the init script
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Oct 2013 17:36:24 +0000 (17:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Oct 2013 17:36:24 +0000 (17:36 +0000)
commitfa02e7a88334260af0ef277a0d726d8f8dcbc4d3
tree92fb7de9182bb5c3a0471cb0d9476cfd5430be68
parent10d995cb13247432b0731a24eb5b183986f2d867
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>
SVN-Revision: 38632
package/network/services/openvpn/files/openvpn.init