Ticket #48144 - Add /usr/sbin/status-dirsrv script to get the status of the directory server instance.
Description:
Analysis by vashirov@redhat.com:
https://bugzilla.redhat.com/show_bug.cgi?id=1209128#c11
The error comes from bash built-in `return`. bash version prior to
4.3 didn't support negative numbers as argument for `return`.
See for reference: http://wiki.bash-hackers.org/scripting/bashchanges
As suggested in the comment, instead of -1, 255 should be returned in
this error case:
> 255 is returned if the instance does not exist.
https://fedorahosted.org/389/ticket/48144
Viktor's proposal is reviewed by nhosoi@redhat.com.