]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Aug 2023 21:57:07 +0000 (23:57 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Aug 2023 21:57:07 +0000 (23:57 +0200)
- added --timeout option for easy re-checking instances with timeout
- please increase "connection_timeout" and "read_timeout" config keys first!

recheck.sh

index e685ca730b747b93af150d91b42e187214ccbebf..1475bac3a14d3fc78588312f0205e272d8696a42 100755 (executable)
@@ -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