Bugzilla – Attachment 147702 Details for
Bug 33108
We need a way to launch the ES indexer automatically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33108: (follow-up) Don't let restart die if ES indexer not running
Bug-33108-follow-up-Dont-let-restart-die-if-ES-ind.patch (text/plain), 1.69 KB, created by
Nick Clemens (kidclamp)
on 2023-03-03 15:34:45 UTC
(
hide
)
Description:
Bug 33108: (follow-up) Don't let restart die if ES indexer not running
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-03-03 15:34:45 UTC
Size:
1.69 KB
patch
obsolete
>From c6cbaad316a51e6261f343473e7b63f085af1d0a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 3 Mar 2023 15:31:21 +0000 >Subject: [PATCH] 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 >--- > debian/koha-common.init | 23 +++++++++++++---------- > 1 file changed, 13 insertions(+), 10 deletions(-) > >diff --git a/debian/koha-common.init b/debian/koha-common.init >index 4f0bae90e4..e0e74f4dd8 100755 >--- a/debian/koha-common.init >+++ b/debian/koha-common.init >@@ -214,18 +214,21 @@ case "$1" in > do_stop > case "$?" in > 0) >- do_start >- case "$?" in >- 0) log_end_msg 0 ;; >- *) log_end_msg 1 ;; # Failed to start >- esac >- ;; >+ log_daemon_msg "Successfully stopped all services for instance $NAME" >+ log_end_msg 0 >+ ;; > *) >- # Failed to stop >- log_end_msg 1 >- ;; >+ # Failed to stop something >+ log_daemon_msg "Failed to stop some services for instance $NAME" >+ log_end_msg 0 >+ ;; > esac >- ;; >+ do_start >+ case "$?" in >+ 0) log_end_msg 0 ;; >+ *) log_end_msg 1 ;; # Failed to start >+ esac >+ ;; > status) > zebra_status > sip_status >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33108
:
147560
|
147574
|
147575
|
147576
|
147617
|
147618
|
147619
|
147620
|
147701
|
147702
|
148328
|
148329
|
148330
|
148331
|
148332