now winix waites for the database to be ready (when the operating system starts)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@638 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-08-14 16:23:18 +00:00
parent 1e7d297c0e
commit b63ac98f40
5 changed files with 51 additions and 15 deletions

View File

@@ -131,6 +131,9 @@ return true;
bool App::Init()
{
db.Init(config.db_database, config.db_user, config.db_pass);
db.WaitForConnection();
if( !CreateFCGISocket() )
return false;
@@ -149,9 +152,10 @@ bool App::Init()
templates.ReadTemplates();
templates.CreateFunctions();
session_manager.LoadSessions();
plugin.Call(WINIX_PLUGIN_INIT);
return true;
}