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
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ openvpn_add_instance() {
|
||||||
--cd "$dir" \
|
--cd "$dir" \
|
||||||
--config "$conf"
|
--config "$conf"
|
||||||
procd_set_param file "$dir/$conf"
|
procd_set_param file "$dir/$conf"
|
||||||
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue