[Freeipa-devel] [PATCH] 0025 Always stop dirsrv in 'ipactl stop'
Petr Viktorin
pviktori at redhat.com
Fri Apr 26 14:03:56 UTC 2013
On 04/26/2013 03:03 PM, Ana Krivokapic wrote:
> Ensure that 'ipactl stop' stops the dirsrv instance, even when no other
> services are running.
>
> https://fedorahosted.org/freeipa/ticket/3574
Thanks for the patch. It solves the problem, but when I look at the `if
len(svc_list) == 0:` block, I see it only protects the os.unlink at the
bottom against the case where there file doesn't exist.
I think the code would be more straightforward if you removed the `if`
block entirely, and wrapped a try/except around the unlink call.
--
Petr³
More information about the Freeipa-devel
mailing list