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>
This commit is contained in:
parent
9b35e6e0ce
commit
4c51596a4b
|
|
@ -212,9 +212,9 @@ done
|
||||||
adjust_paths_dev_install $1
|
adjust_paths_dev_install $1
|
||||||
|
|
||||||
if [ "$DEV_INSTALL" = "" ]; then
|
if [ "$DEV_INSTALL" = "" ]; then
|
||||||
worker_DAEMON="${KOHA_HOME}/bin/background_jobs_worker.pl"
|
worker_DAEMON="${KOHA_HOME}/bin/workers/background_jobs_worker.pl"
|
||||||
else
|
else
|
||||||
worker_DAEMON="${KOHA_HOME}/misc/background_jobs_worker.pl"
|
worker_DAEMON="${KOHA_HOME}/misc/workers/background_jobs_worker.pl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PERL5LIB has been read from etc/default
|
# PERL5LIB has been read from etc/default
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ After=syslog.target network.target
|
||||||
User=%i-koha
|
User=%i-koha
|
||||||
Environment=PERL5LIB=/usr/share/koha/lib
|
Environment=PERL5LIB=/usr/share/koha/lib
|
||||||
Environment=KOHA_CONF=/etc/koha/sites/%i/koha-conf.xml
|
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
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ After=syslog.target network.target
|
||||||
[Service]
|
[Service]
|
||||||
Environment=PERL5LIB=__PERL5LIB_DIRS__
|
Environment=PERL5LIB=__PERL5LIB_DIRS__
|
||||||
Environment=KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml
|
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
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue