Bug 33108: (follow-up) Don't let restart die if ES indexer not running
authorNick Clemens <nick@bywatersolutions.com>
Fri, 3 Mar 2023 15:31:21 +0000 (15:31 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 3 May 2023 12:11:15 +0000 (13:11 +0100)
commit019791238a3cb185f2c8977da3bb38413f69b406
tree44888eb8b1b226d139a32cbda4126f3ba1166005
parent53ddfb35104632ab34d6e6dfb3fd547dc648f445
Bug 33108: (follow-up) Don't let restart die if ES indexer not running

This fixes the restart action in koha-common to continue with starting
services even if the last service cannot be stopped (because it may not
be running)

This needs a larger fix, to ensure all stopped services return a
warning, for now 'do_stop' simply returns the last success/failure

To test:
1 - Apply patch
2 - reset_all
3 - sudo koha-es-indexer --stop kohadev
4 - restart_all
5 - You are notified that ES indexer was not running
6 - You are notified that soem services could not be stopped
7 - The services are started

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 02392b0c2ba2a43036ee1ecefe08692a76cbf267)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
debian/koha-common.init