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
This commit is contained in:
John Crispin 2015-01-08 20:26:41 +00:00
parent 5789169b1d
commit 52c949e448
1 changed files with 1 additions and 0 deletions

View File

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