mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
ITS#4319 fix check for need_shutdown/slap_shutdown()
This commit is contained in:
parent
7368ffb77a
commit
a9844efa70
1 changed files with 14 additions and 12 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue