From: Mark Valence Date: Tue, 9 Nov 1999 21:22:12 +0000 (+0000) Subject: Added calls to new module_init() and module_kill() routines. X-Git-Tag: UCDATA_2_4~220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a432217976e3a0aafd24f100b89ecafa8fb8af95;p=openldap Added calls to new module_init() and module_kill() routines. --- diff --git a/servers/slapd/main.c b/servers/slapd/main.c index db833db299..eb2561e099 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -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 );