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:15:48 -0400
commit1ec531469ee0cf91ed9e150307d93e5ab12aa2a6 (patch)
treed98a838ab4097225432ef6387ca606c272633e88 /ipa-client
parentcc86c1459bf22dc74129e196aeaf78f6a11a0882 (diff)
downloadfreeipa-1ec531469ee0cf91ed9e150307d93e5ab12aa2a6.tar.gz
freeipa-1ec531469ee0cf91ed9e150307d93e5ab12aa2a6.tar.xz
freeipa-1ec531469ee0cf91ed9e150307d93e5ab12aa2a6.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: