Bugzilla – Attachment 111263 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 in package installs
Bug-26363-Provide-a-systemd-unit-file-for-koha-wor.patch (text/plain), 1.51 KB, created by
David Cook
on 2020-10-06 06:37:39 UTC
(
hide
)
Description:
Bug 26363: Provide a systemd unit file for koha-worker in package installs
Filename:
MIME Type:
Creator:
David Cook
Created:
2020-10-06 06:37:39 UTC
Size:
1.51 KB
patch
obsolete
>From 097ba2daf9de0009d77e737503f222a57fc8a32e Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 6 Oct 2020 06:33:05 +0000 >Subject: [PATCH] Bug 26363: Provide a systemd unit file for koha-worker in > package installs > >While the packages already have a koha-zebra script that creates a service >using the 'daemon' utility, this unit file template provides an alternative. > >Note that currently you'd have to start the service using the following: > >```systemctl start koha-worker@NAME.service``` > >Where NAME is the name of your Koha instance. > >The systemctl enable/start commands could be automated more with helper >scripts in debian/scripts, but this is a first step. >--- > debian/templates/koha-worker@.service | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 debian/templates/koha-worker@.service > >diff --git a/debian/templates/koha-worker@.service b/debian/templates/koha-worker@.service >new file mode 100644 >index 0000000000..e209aa6a48 >--- /dev/null >+++ b/debian/templates/koha-worker@.service >@@ -0,0 +1,18 @@ >+# koha-worker@.service >+# /etc/systemd/system/koha-worker@.service >+[Unit] >+Description=Koha Task Queue Worker >+After=syslog.target network.target >+ >+[Service] >+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 >+Restart=on-failure >+RestartSec=5s >+StartLimitBurst=3 >+StartLimitInterval=60 >+SyslogIdentifier=koha-worker_%i >+ >+[Install] >+WantedBy=multi-user.target >-- >2.11.0
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