Commit d195e2df authored by Brian Wellington's avatar Brian Wellington
Browse files

Don't start omapi if running in lwresd mode

parent d5563fcd
......@@ -291,10 +291,12 @@ create_managers(void) {
static void
destroy_managers(void) {
if (!lwresd_only) {
if (ns_g_omapimgr != NULL)
omapi_listener_shutdown(ns_g_omapimgr);
else
omapi_lib_destroy();
}
dns_dispatchmgr_destroy(&ns_g_dispatchmgr);
/*
......@@ -355,6 +357,7 @@ setup(void) {
} else
ns_server_create(ns_g_mctx, &ns_g_server);
if (!lwresd_only) {
result = ns_omapi_init();
if (result != ISC_R_SUCCESS)
ns_main_earlyfatal("omapi_lib_init() failed: %s",
......@@ -370,6 +373,7 @@ setup(void) {
NS_LOGMODULE_MAIN, ISC_LOG_WARNING,
"OMAPI failed to start: %s",
isc_result_totext(result));
}
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment