aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/openvpn
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-01-08 20:26:41 +0000
committerJohn Crispin <blogic@openwrt.org>2015-01-08 20:26:41 +0000
commitec797db3971c466704e9ba0907aff76207b78625 (patch)
tree2d3fdb9650b2664228133b90937dd3ff42e19473 /package/network/services/openvpn
parentd0eb060915646fbe64a4f3aa25ffc4110e994db2 (diff)
downloadupstream-ec797db3971c466704e9ba0907aff76207b78625.tar.gz
upstream-ec797db3971c466704e9ba0907aff76207b78625.tar.bz2
upstream-ec797db3971c466704e9ba0907aff76207b78625.zip
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 <larsg@systemli.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43886 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/openvpn')
-rw-r--r--package/network/services/openvpn/files/openvpn.init1
1 files changed, 1 insertions, 0 deletions
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
}