Bugzilla – Attachment 120944 Details for
Bug 27844
koha-worker systemd service should run as %i-koha in package install
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27844: Launch koha-worker systemd service as koha linux user
Bug-27844-Launch-koha-worker-systemd-service-as-ko.patch (text/plain), 1.56 KB, created by
Kyle M Hall (khall)
on 2021-05-13 18:00:53 UTC
(
hide
)
Description:
Bug 27844: Launch koha-worker systemd service as koha linux user
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-05-13 18:00:53 UTC
Size:
1.56 KB
patch
obsolete
>From 9ac7fde2025a2708a6006225c07e88f055281f0c Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 2 Mar 2021 23:32:28 +0000 >Subject: [PATCH] Bug 27844: Launch koha-worker systemd service as koha linux > user > >This patch adds the User directive to the koha-worker systemd unit file > >Test plan: >0a. DO NOT APPLY PATCH YET >0b. Start a Koha testing environment running systemd >1. koha-worker --stop kohadev >2. cp debian/templates/koha-worker@.service /etc/systemd/system/. >3. systemctl start koha-worker@kohadev.service >4. ps -efww | grep "background_jobs_worker" >5. Note koha-worker is running as root >6. APPLY THE PATCH >7. cp debian/templates/koha-worker@.service /etc/systemd/system/. >8. systemctl daemon-reload >9. systemctl restart koha-worker@kohadev.service >10. ps -efww | grep "background_jobs_worker" >11. Note that koha-worker is now running as kohadev-koha > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > debian/templates/koha-worker@.service | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/debian/templates/koha-worker@.service b/debian/templates/koha-worker@.service >index 53c12ed321..826ae87abc 100644 >--- a/debian/templates/koha-worker@.service >+++ b/debian/templates/koha-worker@.service >@@ -5,6 +5,7 @@ Description=Koha Task Queue Worker > After=syslog.target network.target > > [Service] >+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 >-- >2.24.3 (Apple Git-128)
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 27844
:
117552
|
120817
| 120944