1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fixes and use nping for failover

This commit is contained in:
Ycarus 2018-02-20 22:19:31 +01:00
parent f9adb2e523
commit 99881d1487
5 changed files with 18 additions and 21 deletions

View file

@ -43,6 +43,7 @@ _launch_tracker() {
local ifname ip4table
config_get ifname "$1" ifname
config_get multipath "$1" multipath
config_get gateway "$1" gateway
[ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && return
@ -55,6 +56,7 @@ _launch_tracker() {
procd_append_param env "OMR_TRACKER_INTERVAL=$interval"
procd_append_param env "OMR_TRACKER_TABLE=$ip4table"
procd_append_param env "OMR_TRACKER_DEVICE=$ifname"
procd_append_param env "OMR_TRACKER_DEVICE_GATEWAY=$gateway"
procd_set_param respawn 0 10 0
procd_set_param stderr 1
procd_close_instance