- added --timeout option for easy re-checking instances with timeout
- please increase "connection_timeout" and "read_timeout" config keys first!
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
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