Bugzilla – Attachment 147576 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: Make init handle koha-es-indexer
Bug-33108-Make-init-handle-koha-es-indexer.patch (text/plain), 1.71 KB, created by
Tomás Cohen Arazi
on 2023-03-01 19:06:54 UTC
(
hide
)
Description:
Bug 33108: Make init handle koha-es-indexer
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2023-03-01 19:06:54 UTC
Size:
1.71 KB
patch
obsolete
>From 0b56ec73e0b7494c96bf61acdc101fd099a2d377 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 1 Mar 2023 16:04:25 -0300 >Subject: [PATCH] Bug 33108: Make init handle koha-es-indexer > >--- > debian/koha-common.init | 6 ++++++ > debian/scripts/koha-remove | 4 ++++ > 2 files changed, 10 insertions(+) > >diff --git a/debian/koha-common.init b/debian/koha-common.init >index bc00c76a9b2..a05e85039af 100755 >--- a/debian/koha-common.init >+++ b/debian/koha-common.init >@@ -70,6 +70,8 @@ do_start() > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --start --quiet $(koha-list --enabled) > fi >+ >+ koha-es-indexer --start --quiet $(koha-list --enabled --elasticsearcvh) > } > > # >@@ -90,6 +92,8 @@ do_stop() > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --stop --quiet $(koha-list --enabled) > fi >+ >+ koha-es-indexer --stop --quiet $(koha-list --enabled --elasticsearcvh) > } > > # >@@ -108,6 +112,8 @@ do_reload() { > if [ "$USE_INDEXER_DAEMON" = "yes" ]; then > koha-indexer --restart --quiet $(koha-list --enabled) > fi >+ >+ koha-es-indexer --restart --quiet $(koha-list --enabled --elasticsearcvh) > } > > # >diff --git a/debian/scripts/koha-remove b/debian/scripts/koha-remove >index 7270661bc40..a6653e02f82 100755 >--- a/debian/scripts/koha-remove >+++ b/debian/scripts/koha-remove >@@ -93,6 +93,10 @@ eof > if is_sip_running $name; then > koha-sip --stop $name || /bin/true > fi >+ # Stop the ES indexing daemon if needed >+ if is_es_indexer_running $name; then >+ koha-es-indexer --stop $name || /bin/true >+ fi > > instancefile=$(get_apache_config_for $name) > le_opacdomain=$(letsencrypt_get_opacdomain_for $name) >-- >2.39.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