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

Add wait after test error in omr-tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-11-05 10:21:14 +01:00
parent 812d7b0dc8
commit 47a117defa
7 changed files with 65 additions and 35 deletions

View file

@ -44,6 +44,7 @@ interval=${OMR_TRACKER_INTERVAL:-10}
retry=${OMR_TRACKER_TRIES:-4}
proxy=${OMR_TRACKER_PROXY:-127.0.0.1:1111}
hosts=${OMR_TRACKER_HOSTS:-1.1.1.1 1.0.0.1}
wait_test=${OMR_TRACKER_WAIT_TEST:-0}
nodns=0
@ -88,6 +89,7 @@ while true; do
if [ "$server_ping" = false ]; then
_log "Server ($server) seems down, no answer to ping"
fi
sleep $wait_test
fi
}
fi