mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Make sure messagebus is running prior to starting certmonger.
ticket 1580
This commit is contained in:
parent
cc86c1459b
commit
1ec531469e
@ -826,8 +826,6 @@ def main():
|
||||
# Now put the CA cert where other instances exepct it
|
||||
ca.publish_ca_cert("/etc/ipa/ca.crt")
|
||||
|
||||
service.start('messagebus')
|
||||
|
||||
# Create a directory server instance
|
||||
ds = dsinstance.DsInstance(fstore=fstore)
|
||||
|
||||
|
@ -182,6 +182,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:
|
||||
@ -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:
|
||||
|
@ -484,6 +484,7 @@ class CertDB(object):
|
||||
Tell certmonger to track the given certificate nickname.
|
||||
"""
|
||||
service.chkconfig_on("certmonger")
|
||||
service.start("messagebus")
|
||||
service.start("certmonger")
|
||||
try:
|
||||
(stdout, stderr, rc) = certmonger.start_tracking(nickname, self.secdir, password_file)
|
||||
@ -513,6 +514,7 @@ class CertDB(object):
|
||||
|
||||
# Always start certmonger. We can't untrack something if it isn't
|
||||
# running
|
||||
service.start("messagebus")
|
||||
service.start("certmonger")
|
||||
try:
|
||||
certmonger.stop_tracking(self.secdir, nickname=nickname)
|
||||
|
Loading…
Reference in New Issue
Block a user