[389-devel] Please review (take 3): [389 Project] #48144: Add /usr/sbin/status-dirsrv script to get the status of the directory server instance.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


--
389-devel mailing list
389-devel@%(host_name)s
http://lists.fedoraproject.org/admin/lists/389-devel@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux