summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-08-09 12:37:56 +0200
committerRob Crittenden <rcritten@redhat.com>2011-08-18 20:16:01 -0400
commit704732630cbb466c00b0d49a88a016ed7f861c63 (patch)
tree97f75f889cfa0c55b13c3f89778a910588b722fe /ipa-client
parent21441f0680c0605c849f5bb2825cadbc16bd67f7 (diff)
downloadfreeipa-704732630cbb466c00b0d49a88a016ed7f861c63.tar.gz
freeipa-704732630cbb466c00b0d49a88a016ed7f861c63.tar.xz
freeipa-704732630cbb466c00b0d49a88a016ed7f861c63.zip
Make sure messagebus is running prior to starting certmonger.
ticket 1580
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 1caf9c1ee..fe4e1e4dd 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -183,6 +183,11 @@ def uninstall(options, env):
# Always start certmonger. We can't untrack something if it isn't
# running
try:
+ ipautil.service_start('messagebus')
+ except Exception, e:
+ logging.error("messagebus failed to start: %s" % str(e))
+
+ try:
ipautil.service_start('certmonger')
except Exception, e:
logging.error("certmonger failed to start: %s" % str(e))
@@ -493,6 +498,11 @@ def configure_certmonger(fstore, subject_base, cli_realm, hostname, options):
started = True
principal = 'host/%s@%s' % (hostname, cli_realm)
+ try:
+ ipautil.service_start('messagebus')
+ except Exception, e:
+ logging.error("messagebus failed to start: %s" % str(e))
+
# Ensure that certmonger has been started at least once to generate the
# cas files in /var/lib/certmonger/cas.
try: