https://fedorahosted.org/389/ticket/48144

https://fedorahosted.org/389/attachment/ticket/48144/0001-Ticket-48144-Add-usr-sbin-status-dirsrv-script-to-ge.patch
git patch file (master) -- revised following the comments by William in #comment:8

$ man status-dirsrv
[...]
EXIST STATUS
   status-dirsrv returns 0 if all Directory Server instances are running.  Otherwise, a  non-
   zero failure code returned from systemctl is returned.

   If  a single Directory Server instance is specified, 0 is returned if the instance is run‐
   ning; a non-zero failure code returned from systemctl is returned if the instance  is  not
   running; 255 is returned if the instance does not exist.


On 01/20/2016 04:52 PM, 389 Project wrote:
Replying to [comment:8 firstyear]:
 > Can we return a different code for bogus?
 >
 > This will let us call this and make decisions about if a server:
 >
 > * Exists and is running
 > * Exists and in stopped
 > * Does not exist.

 Are there any standard we should follow?