Exemple #1
0
static void
cleanup(void) {
	destroy_managers();

	ns_server_destroy(&ns_g_server);

	ns_builtin_deinit();

	/*
	 * Add calls to unregister sdb drivers here.
	 */
	/* xxdb_clear(); */

#ifdef CONTRIB_DLZ
	/*
	 * Unregister contributed DLZ drivers.
	 */
	dlz_drivers_clear();
#endif
#ifdef ISC_DLZ_DLOPEN
	/*
	 * Unregister "dlopen" DLZ driver.
	 */
	dlz_dlopen_clear();
#endif

	dns_name_destroy();

	isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
		      ISC_LOG_NOTICE, "exiting");
	ns_log_shutdown();
}
Exemple #2
0
void
dlz_drivers_clear(void) {

#ifdef DLZ_STUB
	dlz_stub_clear();
#endif

#ifdef DLZ_POSTGRES
        dlz_postgres_clear();
#endif

#ifdef DLZ_MYSQL
 	dlz_mysql_clear();
#endif

#ifdef DLZ_FILESYSTEM
        dlz_fs_clear();
#endif

#ifdef DLZ_BDB
        dlz_bdb_clear();
        dlz_bdbhpt_clear();
#endif

#ifdef DLZ_LDAP
        dlz_ldap_clear();
#endif

#ifdef DLZ_ODBC
        dlz_odbc_clear();
#endif

#ifdef DLZ_DLOPEN
        dlz_dlopen_clear();
#endif

}