diff --git a/install/tools/ipactl.in b/install/tools/ipactl.in index ff4e01d81..52773e099 100644 --- a/install/tools/ipactl.in +++ b/install/tools/ipactl.in @@ -237,7 +237,7 @@ def get_config(dirsrv): for order, svc in sorted(svc_list): if svc in service.SERVICE_LIST: ordered_list.append(service.SERVICE_LIST[svc].systemd_name) - return ordered_list + return deduplicate(ordered_list) def get_config_from_file(): @@ -263,7 +263,7 @@ def get_config_from_file(): if svc in svc_list: ordered_list.append(svc) - return ordered_list + return deduplicate(ordered_list) def stop_services(svc_list): @@ -325,7 +325,6 @@ def ipa_start(options): # no service to start return - svc_list = deduplicate(svc_list) for svc in svc_list: svchandle = services.service(svc, api=api) try: @@ -365,7 +364,6 @@ def ipa_stop(options): finally: raise IpactlError() - svc_list = deduplicate(svc_list) for svc in reversed(svc_list): svchandle = services.service(svc, api=api) try: @@ -452,7 +450,6 @@ def ipa_restart(options): if len(old_svc_list) != 0: # we need to definitely stop some services - old_svc_list = deduplicate(old_svc_list) for svc in reversed(old_svc_list): svchandle = services.service(svc, api=api) try: @@ -477,7 +474,6 @@ def ipa_restart(options): if len(svc_list) != 0: # there are services to restart - svc_list = deduplicate(svc_list) for svc in svc_list: svchandle = services.service(svc, api=api) try: @@ -500,7 +496,6 @@ def ipa_restart(options): if len(new_svc_list) != 0: # we still need to start some services - new_svc_list = deduplicate(new_svc_list) for svc in new_svc_list: svchandle = services.service(svc, api=api) try: @@ -552,7 +547,6 @@ def ipa_status(options): if len(svc_list) == 0: return - svc_list = deduplicate(svc_list) for svc in svc_list: svchandle = services.service(svc, api=api) try: