$ 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.
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?