mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
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
This commit is contained in:
parent
5789169b1d
commit
52c949e448
@ -62,6 +62,7 @@ openvpn_add_instance() {
|
||||
--cd "$dir" \
|
||||
--config "$conf"
|
||||
procd_set_param file "$dir/$conf"
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user