[Freeipa-devel] [PATCH] 037 Improve error handling and return status codes in ipactl

Martin Kosek mkosek at redhat.com
Mon Mar 7 17:07:51 UTC 2011


There are cases when ipactl returns success even when it fails. Plus,
when the error really is detected the status codes are not LSB
compliant. This may result in consequent issues.

This patch improves error handling in ipactl and adds LSB compliant
status codes. Namely:

0   program is running or service is OK
3   program is not running
4   program or service status is unknown

for "status" action. Status code 4 is issued when IPA is not
configured to distinguish this state from not running IPA.

For other actions, the following non-zero status codes are
implemented:

1   generic or unspecified error
2   invalid or excess argument(s)
4   user had insufficient privilege
6   program is not configured

https://fedorahosted.org/freeipa/ticket/1055

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-037-ipactl-error-handling.patch
Type: text/x-patch
Size: 9312 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110307/cdf20b42/attachment.bin>


More information about the Freeipa-devel mailing list