aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-01-08 20:26:41 +0000
committerJohn Crispin <john@openwrt.org>2015-01-08 20:26:41 +0000
commit52c949e448ef29c8b12f037b8e379c4aeab32fd8 (patch)
treefbf279bc159b2a749c7a8458e240244b9e6b169e /package/network
parent5789169b1d12b2191dc35b80911255add172483a (diff)
downloadupstream-52c949e448ef29c8b12f037b8e379c4aeab32fd8.tar.gz
upstream-52c949e448ef29c8b12f037b8e379c4aeab32fd8.tar.bz2
upstream-52c949e448ef29c8b12f037b8e379c4aeab32fd8.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> SVN-Revision: 43886
Diffstat (limited to 'package/network')
-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
}