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); diff --git a/scan.php b/scan.php index d819dbf..7023fd3 100644 --- a/scan.php +++ b/scan.php @@ -76,7 +76,7 @@ switch ($_GET["op"]) { else { foreach ($data["DEPLOYMENTS"] as $service_name => $content) { //echo base64_decode($content); - echo '