int slap_startup( Backend *be ) { Debug( LDAP_DEBUG_TRACE, "%s startup: initiated.\n", slap_name, 0, 0 ); return backend_startup( be ); }
int slap_startup( Backend *be ) { int rc; Debug( LDAP_DEBUG_TRACE, "%s startup: initiated.\n", slap_name, 0, 0 ); rc = backend_startup( be ); if ( !rc && ( slapMode & SLAP_SERVER_MODE )) slapMode |= SLAP_SERVER_RUNNING; return rc; }
/* This function will only be called in tool mode */ static int glue_back_open ( BackendInfo *bi ) { int rc = 0; static int glueOpened = 0; if (glueOpened) return 0; glueOpened = 1; /* If we were invoked in tool mode, open all the underlying backends */ if (slapMode & SLAP_TOOL_MODE) { rc = backend_startup (NULL); } /* other case is impossible */ return rc; }