]> git.koha-community.org Git - koha.git/commit
Bug 30684: When a service isn't running koha-* scripts --restart should start it
authorAlex Buckley <alexbuckley@catalyst.net.nz>
Tue, 7 Jun 2022 05:42:20 +0000 (05:42 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 18 Aug 2022 12:00:38 +0000 (09:00 -0300)
commit3227b6136d0bc19eb551878e4487004bdd550a04
treec6ddb967fbef15dc54cc71b001ac2efdc6a65d0b
parentcbe50d798a42b65d4439d30df6bbf2ab6623bbcd
Bug 30684: When a service isn't running koha-* scripts --restart should start it

Test plan:
1. Stop plack, indexer, sip, worker, z3950 and zebra.

Note: To test Z39.50 restarting you will need to setup the server: https://wiki.koha-community.org/wiki/Setting_up_the_Z39.50_and_SRU_Server#Setting_up_the_Z39.50_and_SRU_Server

2. Run restart command for each service:
- [Plack] sudo koha-plack --restart {instance}
- [Indexer] sudo koha-indexer --restart {instance}
- [SIP] sudo koha-sip --restart {instance}
- [Worker] sudo koha-worker --restart {instance}
- [z3950] sudo koha-z3950-responder --restart {instance}
- [Zebra] sudo koha-zebra --restart {instance}

3. Observe the services do not get restarted.
Instead you get an error saying the service is not running

4. Apply patch

5. If you are using kohadevbox you must copy koha-* scripts to /usr/sbin/:
sudo cp debian/scripts/koha-plack /usr/sbin/koha-plack
sudo cp debian/scripts/koha-indexer /usr/sbin/koha-indexer
sudo cp debian/scripts/koha-sip /usr/sbin/koha-sip
sudo cp debian/scripts/koha-worker /usr/sbin/koha-worker
sudo cp debian/scripts/koha-z3950-responder /usr/sbin/koha-z3950-responder
sudo cp debian/scripts/koha-zebra /usr/sbin/koha-zebra

6. Repeat step 2

7. This time confirm that each service is restarted

Sponsored-by: Catalyst IT
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/scripts/koha-indexer
debian/scripts/koha-plack
debian/scripts/koha-sip
debian/scripts/koha-worker
debian/scripts/koha-z3950-responder
debian/scripts/koha-zebra