]> 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)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 13 Mar 2015 22:24:07 +0000 (11:24 +1300)
commit3662ebebc8ae60ceb629825cb891804c41040ade
tree3fdb1374498adea6bd8b4252521fb4340ef66c5f
parent12afc7baea7beef6ac2a98b271aafd5e07ab6b4f
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>
(cherry picked from commit 77809ccd32de48c0946b1451392021d9a67180e6)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
debian/scripts/koha-stop-zebra