]> git.koha-community.org Git - koha.git/commit
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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Mar 2023 12:39:48 +0000 (09:39 -0300)
commit02392b0c2ba2a43036ee1ecefe08692a76cbf267
treeaacec87f0324c1933ddca09ba3504ef993bd4bb7
parent8e0074609543a46110bbaf786aa760c20531840f
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>
debian/koha-common.init