From: blogic Date: Thu, 8 Jan 2015 20:26:41 +0000 (+0000) Subject: openvpn: procd_set_param respawn X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=65f71716e7a5136f8e18152fa4d9a22825cfbf3b;p=openwrt.git 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43886 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init index 9822f1e058..1e0f384f97 100644 --- a/package/network/services/openvpn/files/openvpn.init +++ b/package/network/services/openvpn/files/openvpn.init @@ -62,6 +62,7 @@ openvpn_add_instance() { --cd "$dir" \ --config "$conf" procd_set_param file "$dir/$conf" + procd_set_param respawn procd_close_instance }