diff options
author | Christian Heimes <cheimes@redhat.com> | 2018-11-07 17:32:31 +0100 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2018-11-08 17:44:45 +0100 |
commit | 4124743862cacd4a9b1c6569e19888302a7736f4 (patch) | |
tree | 63283af48572c3341eff85f743f74414fb83570d | |
parent | e569afb04eddc7eb0b287d9046de05ed8de4772d (diff) | |
download | freeipa-4124743862cacd4a9b1c6569e19888302a7736f4.tar.gz freeipa-4124743862cacd4a9b1c6569e19888302a7736f4.tar.xz freeipa-4124743862cacd4a9b1c6569e19888302a7736f4.zip |
Replace messagebus with modern name dbus
"messagebus" is an old, archaic name for dbus. Upstream dbus has started
to move away from the old name. Let's use the modern term in FreeIPA,
too.
Fixes: https://pagure.io/freeipa/issue/7754
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
-rw-r--r-- | ipaplatform/base/services.py | 2 | ||||
-rw-r--r-- | ipaplatform/debian/services.py | 2 | ||||
-rw-r--r-- | ipaserver/install/cainstance.py | 2 | ||||
-rw-r--r-- | ipaserver/install/dogtaginstance.py | 4 | ||||
-rw-r--r-- | ipaserver/install/server/replicainstall.py | 6 |
5 files changed, 7 insertions, 9 deletions
diff --git a/ipaplatform/base/services.py b/ipaplatform/base/services.py index d8734fcfa..20d6d5083 100644 --- a/ipaplatform/base/services.py +++ b/ipaplatform/base/services.py @@ -50,7 +50,7 @@ logger = logging.getLogger(__name__) # should make them available through knownservices.<name> and take care of # re-mapping internally, if needed wellknownservices = ['certmonger', 'dirsrv', 'httpd', 'ipa', 'krb5kdc', - 'messagebus', 'nslcd', 'nscd', 'ntpd', 'portmap', + 'dbus', 'nslcd', 'nscd', 'ntpd', 'portmap', 'rpcbind', 'kadmin', 'sshd', 'autofs', 'rpcgssd', 'rpcidmapd', 'pki_tomcatd', 'chronyd', 'domainname', 'named', 'ods_enforcerd', 'ods_signerd', 'gssproxy'] diff --git a/ipaplatform/debian/services.py b/ipaplatform/debian/services.py index 49c66c8e3..fed74f792 100644 --- a/ipaplatform/debian/services.py +++ b/ipaplatform/debian/services.py @@ -153,8 +153,6 @@ def debian_service_class_factory(name, api=None): return DebianNoService(name, api) if name == 'ipa': return redhat_services.RedHatIPAService(name, api) - if name == 'messagebus': - return DebianNoService(name, api) if name == 'ntpd': return DebianSysvService("ntp", api) return DebianService(name, api) diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py index 1d8a3034e..46dfbe323 100644 --- a/ipaserver/install/cainstance.py +++ b/ipaserver/install/cainstance.py @@ -1046,7 +1046,7 @@ class CAInstance(DogtagInstance): # cause files to have a new owner. self.restore_state("user_exists") - services.knownservices.messagebus.start() + services.knownservices.dbus.start() cmonger = services.knownservices.certmonger cmonger.start() diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py index 142a8c0d7..d58561732 100644 --- a/ipaserver/install/dogtaginstance.py +++ b/ipaserver/install/dogtaginstance.py @@ -266,7 +266,7 @@ class DogtagInstance(service.Service): """ cmonger = services.knownservices.certmonger cmonger.enable() - services.knownservices.messagebus.start() + services.knownservices.dbus.start() cmonger.start() bus = dbus.SystemBus() @@ -338,7 +338,7 @@ class DogtagInstance(service.Service): "for %s", self.subsystem) cmonger = services.knownservices.certmonger - services.knownservices.messagebus.start() + services.knownservices.dbus.start() cmonger.start() nicknames = list(self.tracking_reqs) diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 2e81498f5..03d096d79 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -361,11 +361,11 @@ def check_dns_resolution(host_name, dns_servers): def configure_certmonger(): - messagebus = services.knownservices.messagebus + dbus = services.knownservices.dbus try: - messagebus.start() + dbus.start() except Exception as e: - raise ScriptError("Messagebus service unavailable: %s" % str(e), + raise ScriptError("dbus service unavailable: %s" % str(e), rval=3) # Ensure that certmonger has been started at least once to generate the |