From f334899938d4aa1cf078404d02f631e86a2ed11b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 5 Aug 2023 23:57:07 +0200 Subject: [PATCH] Continued: - added --timeout option for easy re-checking instances with timeout - please increase "connection_timeout" and "read_timeout" config keys first! --- recheck.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5