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)
commit2c84ff42f779ff4c2a8071f53122e3c2895fecd6
tree854dcb1bccced4fb8010d2d2896d7ba0a4ab0f0f
parente00bc81a56da1b9aed2a4114ab64b8ea015507c5
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