mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Added calls to new module_init() and module_kill() routines.
This commit is contained in:
parent
47d4d7fbb0
commit
a432217976
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user