Fix: uninstall does not stop named-pkcs11 and ipa-ods-exporter

ipactl is not aware of new services installed later, if ipactl restart
or start has not been executed.

This commit is workaround, proper fix may need to improve ipactl.

https://fedorahosted.org/freeipa/ticket/5262

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti 2016-01-14 14:52:15 +01:00
parent 7e56b4bbd7
commit 7baa675947
2 changed files with 7 additions and 0 deletions

View File

@ -295,6 +295,9 @@ def main():
else:
install(safe_options, options, filename)
# execute ipactl to refresh services status
ipautil.run(['ipactl', 'start', '--ignore-service-failures'],
raiseonerr=False)
fail_message = '''
Your system may be partly configured.

View File

@ -149,6 +149,10 @@ def main():
service.print_msg("Restarting the web server")
http.restart()
# execute ipactl to refresh services status
ipautil.run(['ipactl', 'start', '--ignore-service-failures'],
raiseonerr=False)
return 0
if __name__ == '__main__':