aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/openvpn/files
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-03-16 11:25:53 +0100
committerJohn Crispin <john@phrozen.org>2017-03-22 09:41:52 +0100
commit06c49dbccf193219b094cbee54fde0048e410eec (patch)
tree0b5cc93802d53419aadb175216321ec0c442e9f5 /package/network/services/openvpn/files
parentfd95397ee33a34704771de2ab26a5910b1a88c6f (diff)
downloadupstream-06c49dbccf193219b094cbee54fde0048e410eec.tar.gz
upstream-06c49dbccf193219b094cbee54fde0048e410eec.tar.bz2
upstream-06c49dbccf193219b094cbee54fde0048e410eec.zip
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>
Diffstat (limited to 'package/network/services/openvpn/files')
-rw-r--r--package/network/services/openvpn/files/openvpn.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init
index 0d77d65956..98c1710f03 100644
--- a/package/network/services/openvpn/files/openvpn.init
+++ b/package/network/services/openvpn/files/openvpn.init
@@ -68,6 +68,9 @@ openvpn_add_instance() {
--config "$conf"
procd_set_param file "$dir/$conf"
procd_set_param respawn
+ procd_append_param respawn 3600
+ procd_append_param respawn 5
+ procd_append_param respawn -1
procd_close_instance
}