[source] openvpn: add extra respawn parameters
LEDE Commits
lede-commits at lists.infradead.org
Fri May 12 02:57:22 PDT 2017
jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/98491a9ae9065dca067181e1f5e8ca930beeaa32
commit 98491a9ae9065dca067181e1f5e8ca930beeaa32
Author: Martin Schiller <ms at dev.tdt.de>
AuthorDate: Thu Mar 16 11:25:53 2017 +0100
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 at dev.tdt.de>
---
package/network/services/openvpn/files/openvpn.init | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init
index 0d77d65..98c1710 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
}
More information about the lede-commits
mailing list