mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-client-install: Restart nisdomain service instead of starting
To ensure new NIS domain name is loaded after ipa-client-install even in case when nisdomainname service is already running, we need to restart the service rather than starting it. https://fedorahosted.org/freeipa/ticket/4393 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Martin Kosek
parent
35d3f03843
commit
ffab09a7ef
@@ -1439,7 +1439,9 @@ def configure_nisdomain(options, domain):
|
||||
|
||||
# Enable and start the domainname service
|
||||
services.knownservices.domainname.enable()
|
||||
services.knownservices.domainname.start()
|
||||
# Restart rather than start so that new NIS domain name is loaded
|
||||
# if the service is already running
|
||||
services.knownservices.domainname.restart()
|
||||
|
||||
|
||||
def unconfigure_nisdomain():
|
||||
|
||||
Reference in New Issue
Block a user