diff options
| author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-06 12:56:44 +0000 |
|---|---|---|
| committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-06 12:56:44 +0000 |
| commit | bc87e8b5844d32a4b6367ca7ecc6aec56a1adf28 (patch) | |
| tree | d909561e095c41f10d984147442a3d49071a8ae2 /src/zabbix_proxy | |
| parent | 4fadc291f8754315252c8c05af222eb92520555e (diff) | |
| download | zabbix-bc87e8b5844d32a4b6367ca7ecc6aec56a1adf28.tar.gz zabbix-bc87e8b5844d32a4b6367ca7ecc6aec56a1adf28.tar.xz zabbix-bc87e8b5844d32a4b6367ca7ecc6aec56a1adf28.zip | |
- [DEV-131] First boot - database creation (sqlite3)
git-svn-id: svn://svn.zabbix.com/trunk@5455 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_proxy')
| -rw-r--r-- | src/zabbix_proxy/proxy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zabbix_proxy/proxy.c b/src/zabbix_proxy/proxy.c index d3d1ba95..c3341b2f 100644 --- a/src/zabbix_proxy/proxy.c +++ b/src/zabbix_proxy/proxy.c @@ -471,13 +471,13 @@ int MAIN_ZABBIX_ENTRY(void) } #endif /* HAVE_SQLITE3 */ - DBconnect(ZBX_DB_CONNECT_EXIT); +/* DBconnect(ZBX_DB_CONNECT_EXIT);*/ /* Need to set trigger status to UNKNOWN since last run */ /* DBconnect() already made in init_config() */ /* DBconnect();*/ - DBupdate_triggers_status_after_restart(); - DBclose(); +/* DBupdate_triggers_status_after_restart(); + DBclose();*/ /* To make sure that we can connect to the database before forking new processes */ /* DBconnect(ZBX_DB_CONNECT_EXIT);*/ @@ -488,6 +488,7 @@ int MAIN_ZABBIX_ENTRY(void) zbx_error("Unable to create mutex for node syncs"); exit(FAIL); }*/ + DBinit(); threads = calloc(1 + CONFIG_DATASENDER_FORKS + CONFIG_POLLER_FORKS + CONFIG_TRAPPERD_FORKS + CONFIG_PINGER_FORKS + CONFIG_HOUSEKEEPER_FORKS + CONFIG_UNREACHABLE_POLLER_FORKS |
