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:
@@ -84,19 +84,16 @@ int main(int argv, char ** argc)
|
||||
app.stdout_is_closed = true;
|
||||
}
|
||||
|
||||
|
||||
log.Init(app.config.log_level, app.config.log_file, app.config.log_stdout, app.config.log_request);
|
||||
nlog.Init(app.config.log_level, app.config.log_notify_file, false, 1);
|
||||
app.db.Init(app.config.db_database, app.config.db_user, app.config.db_pass);
|
||||
|
||||
// app.config.base_server can be changed (stripped from 'http://' or a last slash)
|
||||
// it is done when the config is read
|
||||
log << log3 << "base_server: " << app.config.base_server << logend;
|
||||
|
||||
// load plugins before loading sessions - session_manager.LoadSessions()
|
||||
// because some of the plugins can init your own session dates
|
||||
// because some of the plugins can init its own sessions dates
|
||||
plugin.LoadPlugins(app.config.plugin_file);
|
||||
//plugin.Call(WINIX_PLUGIN_INIT);
|
||||
|
||||
if( !app.Init() )
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user