From 788b0ac5d9ae805f46321d50531ed5baf80eee1e Mon Sep 17 00:00:00 2001
From: David Kupka <dkupka@redhat.com>
Date: Tue, 4 Nov 2014 03:22:59 -0500
Subject: [PATCH] Stop dirsrv last in ipactl stop.
Other services may depend on directory server.
https://fedorahosted.org/freeipa/ticket/4632
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
---
install/tools/ipactl | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/install/tools/ipactl b/install/tools/ipactl
index 7a1e41b01a80eeea85c417399dcf4666f70d4b26..b1b0b6e26fa97cdc953c86eee22e160782b57379 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -291,12 +291,6 @@ def ipa_stop(options):
finally:
raise IpactlError()
- try:
- print "Stopping Directory Service"
- dirsrv.stop(capture_output=False)
- except:
- raise IpactlError("Failed to stop Directory Service")
-
for svc in reversed(svc_list):
svchandle = services.service(svc)
try:
@@ -305,6 +299,12 @@ def ipa_stop(options):
except:
emit_err("Failed to stop %s Service" % svc)
+ try:
+ print "Stopping Directory Service"
+ dirsrv.stop(capture_output=False)
+ except:
+ raise IpactlError("Failed to stop Directory Service")
+
# remove file with list of started services
try:
os.unlink(paths.SVC_LIST_FILE)
--
2.1.0