summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-03-02 16:45:45 -0500
committerRob Crittenden <rcritten@redhat.com>2011-03-03 11:02:03 -0500
commitf69dc03f07ef1dd7dde4f2db8ba0ffc57fedcab7 (patch)
tree465f17a62d7b030201c6ee419678e96522ce2995
parentf476c097d2ac5f0270ea3207955cd7184ffb9e1d (diff)
downloadfreeipa-f69dc03f07ef1dd7dde4f2db8ba0ffc57fedcab7.tar.gz
freeipa-f69dc03f07ef1dd7dde4f2db8ba0ffc57fedcab7.tar.xz
freeipa-f69dc03f07ef1dd7dde4f2db8ba0ffc57fedcab7.zip
Need to restart the dogtag 388-ds instance before using it.
Restart the 389-ds instance to ensure all schema is loaded that dogtag may have installed as files. According to bug https://bugzilla.redhat.com/show_bug.cgi?id=680984 this it is only needed on clones. ticket 1024
-rwxr-xr-xinstall/tools/ipa-replica-install17
1 files changed, 17 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 17f5cbc3..d9a9748a 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -176,6 +176,23 @@ def install_ca(config):
master_host=config.master_host_name,
subject_base=config.subject_base)
+ # The dogtag DS instance needs to be restarted after installation.
+ # The procedure for this is: stop dogtag, stop DS, start DS, start
+ # dogtag
+ #
+ # The service_name trickery is due to the service naming we do
+ # internally. In the case of the dogtag DS the name doesn't match the
+ # unix service.
+
+ service_name = cs.service_name
+ service.print_msg("Restarting the directory and certificate servers")
+ cs.service_name = "dirsrv"
+ cs.stop("PKI-IPA")
+ ca.stop()
+ cs.start("PKI-IPA")
+ ca.start()
+ cs.service_name = service_name
+
return ca
def install_replica_ds(config):