diff options
author | Rich Megginson <rmeggins@redhat.com> | 2007-09-14 16:26:17 +0000 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2007-09-14 16:26:17 +0000 |
commit | 75f917e168ecfb204a92662579dac32ce959898b (patch) | |
tree | 80e45e2b06d094e6fca8a6d4aa5a3fab763f8b51 /ldap | |
parent | 55a7ced0f363e3ebed77077ab834092d0b7a035d (diff) | |
download | ds-75f917e168ecfb204a92662579dac32ce959898b.tar.gz ds-75f917e168ecfb204a92662579dac32ce959898b.tar.xz ds-75f917e168ecfb204a92662579dac32ce959898b.zip |
Resolves: bug 288451
Description: Show-Stopper - Migration from HP-PARISC DS 6.21 to DS80 on HP-Itaninum
Fix Description: Cannot start servers until after the data and config has been migrated.
Diffstat (limited to 'ldap')
-rw-r--r-- | ldap/admin/src/scripts/DSMigration.pm.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ldap/admin/src/scripts/DSMigration.pm.in b/ldap/admin/src/scripts/DSMigration.pm.in index fd8ac04d..089f4121 100644 --- a/ldap/admin/src/scripts/DSMigration.pm.in +++ b/ldap/admin/src/scripts/DSMigration.pm.in @@ -743,9 +743,9 @@ sub migrateDS { return 0; } - if (!$mig->{start_servers}) { - $inf->{slapd}->{start_server} = 0; - } + # create servers but do not start them until after databases + # have been migrated + $inf->{slapd}->{start_server} = 0; # create the new instance @errs = createDSInstance($inf); @@ -768,6 +768,15 @@ sub migrateDS { $mig->msg(@errs); return 0; } + + # finally, start the server + if ($mig->{start_servers}) { + $inf->{slapd}->{start_server} = 1; + if (@errs = DSCreate::startServer($inf)) { + $mig->msg(@errs); + return 0; + } + } } return 1; |