[Koha-bugs] [Bug 10624] koha-common.init should implement the 'status' option switch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 2 03:01:19 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10624

Robin Sheat <robin at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21513|0                           |1
        is obsolete|                            |

--- Comment #8 from Robin Sheat <robin at catalyst.net.nz> ---
Created attachment 21706
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21706&action=edit
Bug 10624: 'status' option switch for the packages init script

This patch makes the init script return the status of the relevant processes.
It relies on the koha-list switches added by 10622, and is written on top of
the patch from 10617 that cleaned the init script.

To test:
- Apply the patch (+ 10622 so the SIP part works), build package and install
- Run
 $ service koha-common status

Note: it can be tested just copying the debian/koha-common.init script to a
server running koha-common instances and calling it
 $ ./koha-common.init status

If you don't have a patched koha-list command it will fail to report SIP
servers status.

Regards
To+

Edit: added the PID parameter to daemon as it failed to check SIP servers were
running otherwise.

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Robin Sheat <robin at catalyst.net.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list