diff --git a/Site/Pages/v5/Public/Initialize.aspx b/Site/Pages/v5/Public/Initialize.aspx index 027897ae..d8279ef5 100644 --- a/Site/Pages/v5/Public/Initialize.aspx +++ b/Site/Pages/v5/Public/Initialize.aspx @@ -48,6 +48,10 @@ font-size: 200%; text-align: center; } + span.monotext { + font-family: Ubuntu Mono; + font-weight: 500; + } @@ -314,8 +318,8 @@ SwarmopsJS.ajaxCall("/Pages/v5/Public/Initialize.aspx/CreateFirstUser", jsonDataFirstUser, function () { - // To avoid a race condition, enable login/finish only when first user actually created - $('a.buttonFinish').removeClass("buttonDisabled"); + // Once the first user has been created, start testing for daemons + testDaemonHeartbeats(); }); } } @@ -568,6 +572,33 @@ setTimeout('$("#<%=this.TextCredentialsReadDatabase.ClientID %>").focus();', 250); } + function testDaemonHeartbeats() { + SwarmopsJS.ajaxCall("/Pages/v5/Public/Initalize.aspx/TestDaemonHeartbeats", {}, function(result) { + if (!result.Success) { + alertify.error("Unable to check for service heartbeat. Installation failure. :("); + return; + } + + if (result.Frontend && result.Backend) { + // both hearts are beating, enable finish line + // TODO: Check for socket on frontend? + + $('div#DivStartServers').fadeOut(200, 'swing', function () { $('#DivReadyLogin').fadeIn(200); $('a.buttonFinish').removeClass("buttonDisabled"); }); + return; // do not reschedule another test + } + else if (result.Frontend) { + $('p#ProcessWaitFrontendNotBackend').fadeIn(); + } + else if (result.Backend) { + $('p#ProcessWaitBackendNotFrontend').fadeIn(); + } + + setTimeout('testDaemonHeartbeats();', 2000); // repeat test until success + }); + + + } + var autoConfigMode = true; @@ -760,15 +791,16 @@ Repeat password -