diff options
author | David Kupka <dkupka@redhat.com> | 2014-11-04 03:22:59 -0500 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-11-06 10:43:11 +0100 |
commit | 9335552418e515cd97da549da403447e5cae842c (patch) | |
tree | 908a8fedb178721b87fb2e79bedaa6074b3a5a4b /install | |
parent | 85eb17553f46bfb4446279037e324f825d3389bd (diff) | |
download | freeipa-9335552418e515cd97da549da403447e5cae842c.tar.gz freeipa-9335552418e515cd97da549da403447e5cae842c.tar.xz freeipa-9335552418e515cd97da549da403447e5cae842c.zip |
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>
Diffstat (limited to 'install')
-rwxr-xr-x | install/tools/ipactl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl index 7a1e41b01..b1b0b6e26 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) |