From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:36:39 +0000 (+0000) Subject: startup and shutdown backends only if not in dryrun mode X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47415023b4c976ff901cc0d80d825c2f5149c090;p=openldap startup and shutdown backends only if not in dryrun mode --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 68af0e9ff5..637dfe0d90 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -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 ) { - slap_shutdown( be ); + if ( !dryrun ) { + slap_shutdown( be ); + } slap_destroy(); #ifdef SLAPD_MODULES if ( slapMode == SLAP_SERVER_MODE ) {