openvpn: procd_set_param respawn

Makes sure that the openvpn instance gets restarted in case of a crash.

Intentional stops using /etc/init.d/openvpn stop will not result in
respawning. Anything else will, e.g. killall openvpn.

Signed-off-by: Lars Gierth <larsg@systemli.org>

SVN-Revision: 43886
master
John Crispin 10 years ago
parent 5789169b1d
commit 52c949e448
  1. 1
      package/network/services/openvpn/files/openvpn.init

@ -62,6 +62,7 @@ openvpn_add_instance() {
--cd "$dir" \ --cd "$dir" \
--config "$conf" --config "$conf"
procd_set_param file "$dir/$conf" procd_set_param file "$dir/$conf"
procd_set_param respawn
procd_close_instance procd_close_instance
} }

Loading…
Cancel
Save