Added calls to new module_init() and module_kill() routines.

This commit is contained in:
Mark Valence 1999-11-09 21:22:12 +00:00
parent 47d4d7fbb0
commit a432217976

View File

@ -359,6 +359,14 @@ int main( int argc, char **argv )
}
#endif
#ifdef SLAPD_MODULES
if ( module_init() != 0 ) {
rc = 1;
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 17 );
goto destroy;
}
#endif
if ( slap_init( serverMode, serverName ) != 0 ) {
rc = 1;
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 18 );
@ -452,6 +460,10 @@ destroy:
/* remember an error during destroy */
rc |= slap_destroy();
#ifdef SLAPD_MODULES
module_kill();
#endif
stop:
#ifdef HAVE_NT_EVENT_LOG
LogSlapdStoppedEvent( NTservice );