startup and shutdown backends only if not in dryrun mode

This commit is contained in:
Pierangelo Masarati 2004-07-18 21:36:39 +00:00
parent 5992a9b7e6
commit 47415023b4

View File

@ -508,7 +508,7 @@ startup:;
mal_leaktrace(1);
#endif
if ( slap_startup( be ) ) {
if ( !dryrun && slap_startup( be ) ) {
fprintf( stderr, "slap_startup failed\n" );
exit( EXIT_FAILURE );
}
@ -516,7 +516,9 @@ startup:;
void slap_tool_destroy( void )
{
if ( !dryrun ) {
slap_shutdown( be );
}
slap_destroy();
#ifdef SLAPD_MODULES
if ( slapMode == SLAP_SERVER_MODE ) {