Warning: session_start(): open(/var/lib/php/sessions/sess_re6l9eqiar2bluhnmhvau53f3j, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
!include once #1002615 // master()
// Homepage, Talk to Eleu, Web Auth, Cookies
static L seedBots = litlist("#1003253", "#1002213", "#1002590", "#1002157");
!include #1002576 // Web Serving
!include #1002578 // Eleu Core
!include #1013904 // Eleu web socket
static int[] webServerPorts = {80, 8080};
static int[] httpsPorts = {443, 8443};
cmodule Eleu > DynPrintLog {
start {
becomeBotVMIfFirst();
webInit();
eleu_webSocket_init();
if (nempty(httpsPorts)) pcall {
File keystore = firstFileThatExists(
javaxSecretDir("keystore.p12"),
secretProgramFile(programID(), "keystore.jks"));
S pass = loadSecretTextFileMandatory("keystore-pass").trim();
//serveHttps(httpsPort, keystore, pass);
//serveHttpsWithWebsockets(httpsPort, keystore, pass, eleu_webSocket_handler());
//serveHttpsWithWebsockets_server.printServes = false;
serveHttpsWithWebsockets_multiplePorts(keystore, pass, eleu_webSocket_handler(), httpsPorts);
}
coreInit();
for (S id : seedBots)
call(getDispatcher(), "addSeedBot", id);
// TODO
/*if (hasBot("New Eleu Watch Dog."))
print("Have Eleu Watch Dog.");
else {
print("Starting Eleu Watch Dog.");
nohupJavax(#1014075);
sleepSeconds(5);
}*/
}
}