Bug 32992: Move background_jobs_worker to misc/workers

On bug 32594 we are adding a new worker, dedicated to Elastic indexing.
We should have a common place for workers, and we agreed on misc/workers

To test:
1 - Apply patch
2 - reset_all in koha testing docker
3 - ps aux | grep background
4 - Confirm the workers are running, and running in the new directory
5 - Perform a batch item modification
6 - Ensure the job is processed by the worker

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4c51596a4b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2023-02-17 12:00:49 +00:00 committed by Martin Renvoize
parent ab7021195e
commit 3f386d2573
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
4 changed files with 4 additions and 4 deletions

View file

@ -212,9 +212,9 @@ done
adjust_paths_dev_install $1
if [ "$DEV_INSTALL" = "" ]; then
worker_DAEMON="${KOHA_HOME}/bin/background_jobs_worker.pl"
worker_DAEMON="${KOHA_HOME}/bin/workers/background_jobs_worker.pl"
else
worker_DAEMON="${KOHA_HOME}/misc/background_jobs_worker.pl"
worker_DAEMON="${KOHA_HOME}/misc/workers/background_jobs_worker.pl"
fi
# PERL5LIB has been read from etc/default

View file

@ -8,7 +8,7 @@ After=syslog.target network.target
User=%i-koha
Environment=PERL5LIB=/usr/share/koha/lib
Environment=KOHA_CONF=/etc/koha/sites/%i/koha-conf.xml
ExecStart=/usr/share/koha/bin/background_jobs_worker.pl
ExecStart=/usr/share/koha/bin/workers/background_jobs_worker.pl
Restart=on-failure
RestartSec=5s
StartLimitBurst=3

View file

@ -6,7 +6,7 @@ After=syslog.target network.target
[Service]
Environment=PERL5LIB=__PERL5LIB_DIRS__
Environment=KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml
ExecStart=__SCRIPT_DIR__/background_jobs_worker.pl
ExecStart=__SCRIPT_DIR__/workers/background_jobs_worker.pl
Restart=on-failure
RestartSec=5s
StartLimitBurst=3