From 47415023b4c976ff901cc0d80d825c2f5149c090 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:36:39 +0000 Subject: [PATCH] startup and shutdown backends only if not in dryrun mode --- servers/slapd/slapcommon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ) { -- 2.39.5