[Freeipa-devel] [PATCH] 0025 Always stop dirsrv in 'ipactl stop'

Ana Krivokapic akrivoka at redhat.com
Fri Apr 26 14:30:56 UTC 2013


On 04/26/2013 04:03 PM, Petr Viktorin wrote:
> 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.
>

Agreed, updated patch attached.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-akrivoka-0025-02-Always-stop-dirsrv-in-ipactl-stop.patch
Type: text/x-patch
Size: 1829 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130426/49191634/attachment.bin>


More information about the Freeipa-devel mailing list