From 4f06786d85d61f34a2b64aee050546b9ac073369 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Aug 2024 11:58:53 +0200 Subject: [PATCH] recheck redis server --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index 3c6f02a..65f1e94 100644 --- a/index.html +++ b/index.html @@ -82,16 +82,23 @@ function check_system() { }); } +function check_redis() { + var url = 'scan.php?op=redis'; $.get(url, function(data){ + console.log(data); if (data=='OK') { $("#redis").html('Redis server - OK'); start_system(); } else { $("#redis").html('Redis server is not available...'); + setTimeout(check_redis, 1000); } }); +} + + check_redis(); //setTimeout(redirectToManage, 10000);