Bugzilla – Attachment 116203 Details for
Bug 26363
Provide a systemd unit file for background_jobs_worker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26363: Provide a systemd unit file for koha-worker for source installs
Bug-26363-Provide-a-systemd-unit-file-for-koha-wor.patch (text/plain), 2.03 KB, created by
Martin Renvoize (ashimema)
on 2021-02-02 11:09:51 UTC
(
hide
)
Description:
Bug 26363: Provide a systemd unit file for koha-worker for source installs
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-02 11:09:51 UTC
Size:
2.03 KB
patch
obsolete
>From 9b7377e6d373f64276ecd1b002c097266f64a105 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 6 Oct 2020 06:30:56 +0000 >Subject: [PATCH] Bug 26363: Provide a systemd unit file for koha-worker for > source installs > >This patch adds a systemd unit file which gets rewritten according to >the configuration specified by Makefile.PL. This can be linked or >copied to systemd directories for running a systemd service for >background_jobs_worker.pl > >Test plan: >1. perl Makefile.PL >1a. Choose "single" installation >1b. Choose "/opt/koha" for a file path >2. make >3. vi blib/KOHA_CONF_DIR/koha-worker.service >4. Verify that PERL5LIB, KOHA_CONF, ExecStart, and SyslogIdentifier >all appear to be correctly filled in > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Makefile.PL | 1 + > etc/koha-worker.service | 17 +++++++++++++++++ > 2 files changed, 18 insertions(+) > create mode 100644 etc/koha-worker.service > >diff --git a/Makefile.PL b/Makefile.PL >index b2d48ae65f..414a8dd89e 100644 >--- a/Makefile.PL >+++ b/Makefile.PL >@@ -673,6 +673,7 @@ my $pl_files = { > 'blib/KOHA_CONF_DIR/koha-conf.xml', > 'blib/KOHA_CONF_DIR/koha-httpd.conf', > 'blib/KOHA_CONF_DIR/log4perl.conf', >+ 'blib/KOHA_CONF_DIR/koha-worker.service', > 'blib/ZEBRA_CONF_DIR/etc/default.idx', > 'blib/MISC_DIR/koha-install-log' > ], >diff --git a/etc/koha-worker.service b/etc/koha-worker.service >new file mode 100644 >index 0000000000..67a88303eb >--- /dev/null >+++ b/etc/koha-worker.service >@@ -0,0 +1,17 @@ >+# koha-worker.service >+[Unit] >+Description=Koha Task Queue Worker >+After=syslog.target network.target >+ >+[Service] >+Environment=PERL5LIB=__PERL_MODULE_DIR__ >+Environment=KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml >+ExecStart=__SCRIPT_DIR__/background_jobs_worker.pl >+Restart=on-failure >+RestartSec=5s >+StartLimitBurst=3 >+StartLimitInterval=60 >+SyslogIdentifier=koha-worker-__DB_NAME__ >+ >+[Install] >+WantedBy=multi-user.target >-- >2.20.1
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 26363
:
111262
|
111263
|
113450
|
113461
|
114831
| 116203 |
116204
|
116205
|
117630