From: Roland Häder Date: Sat, 5 Aug 2023 21:57:07 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f334899938d4aa1cf078404d02f631e86a2ed11b;p=fba.git Continued: - added --timeout option for easy re-checking instances with timeout - please increase "connection_timeout" and "read_timeout" config keys first! --- diff --git a/recheck.sh b/recheck.sh index e685ca7..1475bac 100755 --- a/recheck.sh +++ b/recheck.sh @@ -3,7 +3,7 @@ MODE="" if [ "$1" = "--help" ] then - echo "Usage: $ [file|--software|--nodeinfo|--detection|--no-auto]" + echo "Usage: $ [file|--software|--nodeinfo|--detection|--no-auto|--timeout]" exit 255 elif [ -n "$1" -a -f "$1" ] then @@ -25,6 +25,10 @@ elif [ "$1" = "--no-auto" ] then DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE detection_mode != 'AUTO_DISCOVERY' ORDER BY last_updated ASC;") MODE="noauto" +elif [ "$1" = "--timeout" ] +then + DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE last_error_details LIKE '%Timeout%' ORDER BY last_updated ASC;") + MODE="software" else DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;") fi