openvpn: add extra respawn parameters
This change protects the openvpn instances to be marked as "in a crash loop" and thereby the connection retries will run infinitely. When the remote site of an openvpn connection goes down for some time (network failure etc.) the openvpn instance in an openwrt/lede device should not stop retrying to establish the connection. With the current limit of 5 retries, there is a user interaction required, which isn't really what you want when the device should simply do everything to keep the vpn connection up. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
parent
fd95397ee3
commit
06c49dbccf
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ openvpn_add_instance() {
|
||||||
--config "$conf"
|
--config "$conf"
|
||||||
procd_set_param file "$dir/$conf"
|
procd_set_param file "$dir/$conf"
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
|
procd_append_param respawn 3600
|
||||||
|
procd_append_param respawn 5
|
||||||
|
procd_append_param respawn -1
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue