]> git.koha-community.org Git - koha.git/commit
Bug 13784: koha-stop-zebra should also work for disabled instances
authorLarry Baerveldt <larry@bywatersolutions.com>
Tue, 3 Mar 2015 13:49:57 +0000 (05:49 -0800)
committerMason James <mtj@kohaaloha.com>
Fri, 27 Mar 2015 00:51:14 +0000 (13:51 +1300)
commit4acaa82fa101f892bab1e7e95db8d1ebcf286ea0
tree0ab67b697eb755b4119ef3fd09bea0b8a41810af
parent28128c034f60e3e771409673133c6dfd27852965
Bug 13784: koha-stop-zebra should also work for disabled instances

Currently koha-stop-zebra will not stop zebra for disabled instances. It should
work more like koha-stop-sip, which does work for disabled instances. Also,
koha-stop-zebra is called by '/etc/init.d/koha-common stop' which clearly
should also apply to disabled instances.

To Test:
1) Disable a koha instance.
2) Run koha-stop-zebra INSTANCE. You should get message
   "Instance INSTANCE disabled. No action taken."
3) Apply patch, and copy patched file debian/scripts/koha-stop-zebra
   to package site over /usr/sbin/koha-stop-zebra.
4) Disable koha instance.
5) Run koha-stop-zebra INSTANCE. It should now stop zebra.

http://bugs.koha-community.org/show_bug.cgi?id=13784
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
debian/scripts/koha-stop-zebra