openvpn: increase procd termination timeout to 15s

Increase the termination timeout to 15s to let OpenVPN properly tear down
its connections, especially when weak links or complex down scripts are
involved.

Fixes FS#859.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-07-17 16:01:46 +02:00
parent 8194f9ef4a
commit 28d3a1b54b
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openvpn PKG_NAME:=openvpn
PKG_VERSION:=2.4.5 PKG_VERSION:=2.4.5
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE_URL:=\ PKG_SOURCE_URL:=\
https://build.openvpn.net/downloads/releases/ \ https://build.openvpn.net/downloads/releases/ \

View file

@ -67,6 +67,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 term_timeout 15
procd_set_param respawn procd_set_param respawn
procd_append_param respawn 3600 procd_append_param respawn 3600
procd_append_param respawn 5 procd_append_param respawn 5