]> git.sur5r.net Git - openldap/commitdiff
startup and shutdown backends only if not in dryrun mode
authorPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:36:39 +0000 (21:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 18 Jul 2004 21:36:39 +0000 (21:36 +0000)
servers/slapd/slapcommon.c

index 68af0e9ff598577ccf213a4cc173161c6886b5bb..637dfe0d90715b50057ff508909ff591a5915df4 100644 (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 )
 {
-       slap_shutdown( be );
+       if ( !dryrun ) {
+               slap_shutdown( be );
+       }
        slap_destroy();
 #ifdef SLAPD_MODULES
        if ( slapMode == SLAP_SERVER_MODE ) {