Setting to disable autostart of connections to Postgres servers.

git-svn-id: http://voip.null.ro/svn/yate@3005 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-01-05 12:39:34 +00:00
parent 60e7a81dd0
commit 0622a2379f
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,9 @@
;[default]
; The section name is used as the database connection name
; autostart: bool: Automatically initiate the connection on startup
;autostart=yes
; timeout: int: Query timeout in milliseconds
;timeout=10000

View File

@ -392,7 +392,8 @@ void PgModule::initialize()
if (!sec || (*sec == "general"))
continue;
PgConn* conn = new PgConn(sec);
conn->initDb();
if (sec->getBoolValue("autostart",true))
conn->initDb();
s_conns.insert(conn);
}