mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-30 08:07:56 -05:00
Fix uninstall stopping ipa.service
When uninstalling systemd is told to disable the service, but it is not told to sopt it, so it believes it is still running. This can cause issues in some cases if a reinstall is performed right after an uninstall, as systemd may decide to stop the disabled service while we are reinstalling, causing the new install to fail. https://fedorahosted.org/freeipa/ticket/5959 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
@@ -1034,9 +1034,13 @@ def uninstall(installer):
|
||||
|
||||
print("Shutting down all IPA services")
|
||||
try:
|
||||
run([paths.IPACTL, "stop"], raiseonerr=False)
|
||||
services.knownservices.ipa.stop()
|
||||
except Exception:
|
||||
pass
|
||||
# Fallback to direct ipactl stop only if system command fails
|
||||
try:
|
||||
run([paths.IPACTL, "stop"], raiseonerr=False)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
ntpinstance.NTPInstance(fstore).uninstall()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user