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 <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
1425743c10
commit
0f2f88371d
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue