From 0f2f88371d3e20db53f06f212386742fb0f82c5d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 12 May 2026 11:44:54 -0400 Subject: [PATCH] Bug 40901: (follow-up) Re-discover ES indexers on koha-common start The SysV init script runs `koha-list --enabled --elasticsearch` at every start. ExecStartPre on koha-common.service restores that. Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize Signed-off-by: Pedro Amorim --- debian/systemd/koha-common.service | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/systemd/koha-common.service b/debian/systemd/koha-common.service index 8f49282b95..af29d0e18e 100644 --- a/debian/systemd/koha-common.service +++ b/debian/systemd/koha-common.service @@ -7,6 +7,7 @@ After=koha.target [Service] Type=oneshot RemainAfterExit=yes +ExecStartPre=+/bin/sh -c 'for i in $(koha-list --enabled --elasticsearch 2>/dev/null); do systemctl enable --now "koha-es-indexer@$i.service" 2>/dev/null || true; done' ExecStart=/bin/systemctl start koha.target ExecStop=/bin/systemctl stop koha.target