projects
/
openwrt
/
staging
/
kaloz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5789169
)
openvpn: procd_set_param respawn
author
John Crispin
<john@openwrt.org>
Thu, 8 Jan 2015 20:26:41 +0000
(20:26 +0000)
committer
John Crispin
<john@openwrt.org>
Thu, 8 Jan 2015 20:26:41 +0000
(20:26 +0000)
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
package/network/services/openvpn/files/openvpn.init
patch
|
blob
|
history
diff --git
a/package/network/services/openvpn/files/openvpn.init
b/package/network/services/openvpn/files/openvpn.init
index 9822f1e058b90ee8d1d7e405ccdd94652d87785a..1e0f384f97806da84eafe24f3a4db1aef411d802 100644
(file)
--- 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
}