Bug 14361: koha-restart-zebra fails and probably breaks upgrade
commitbb1ab847299677ca798ca07691b4bf965b1521a8
authorBenjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Mon, 8 Jun 2015 09:12:03 +0000 (8 11:12 +0200)
committerLiz Rea <wizzyrea@gmail.com>
Mon, 21 Sep 2015 04:41:16 +0000 (21 16:41 +1200)
treee823db1810a136d91b8face6cbdf42f7407ad119
parenta15a88fa8276b77f8960173dea025f8d9c049aff
Bug 14361: koha-restart-zebra fails and probably breaks upgrade

This patch fixes the koha-restart-zebra and koha-stop-zebra scripts
by adding pidfiles folder to the test is_zebra_running.
It also adds pidfiles to the test is_indexer_running so that
koha-rebuild-zebra will work properly.

Test plan:
1) check if zebrasrv is running, get pid of zebrasrv
   ps ax | grep zebrasrv
2) In my case, there was also a warning on the about.pl page on a fresh
   install: Error message from Zebra: 1011 (bad credentials)
3) try to restart zebra
   koha-restart-zebra instancename
   You will get a msg :
   Zebra does not appear to have been running for instancename
   Starting Zebra server for instancename
4) check again if zebrasrv is running
    ps ax | grep zebrasrv
   and see that pid has not changed, thus it is not restarted
5) Apply patch
6) repeat 4) and watch now how pid has changed
   If there was a warning on about.pl it should now be gone

Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Good catch Benjamin! It works as expected with the patch.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
debian/scripts/koha-functions.sh