ITS#4319 fix check for need_shutdown/slap_shutdown()

This commit is contained in:
Howard Chu 2006-01-10 18:32:09 +00:00
parent 7368ffb77a
commit a9844efa70

View file

@ -627,22 +627,24 @@ startup:;
}
/* slapdn doesn't specify a backend to startup */
if ( !dryrun && tool != SLAPDN && slap_startup( be ) ) {
if ( !dryrun && tool != SLAPDN ) {
need_shutdown = 1;
switch ( tool ) {
case SLAPTEST:
fprintf( stderr, "slap_startup failed "
"(test would succeed using "
"the -u switch)\n" );
break;
if ( slap_startup( be ) ) {
switch ( tool ) {
case SLAPTEST:
fprintf( stderr, "slap_startup failed "
"(test would succeed using "
"the -u switch)\n" );
break;
default:
fprintf( stderr, "slap_startup failed\n" );
break;
default:
fprintf( stderr, "slap_startup failed\n" );
break;
}
exit( EXIT_FAILURE );
}
exit( EXIT_FAILURE );
}
}