[Koha-bugs] [Bug 27844] koha-worker systemd service should run as %i-koha in package install

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 3 00:36:29 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27844

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Created attachment 117552
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117552&action=edit
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 at .service /etc/systemd/system/.
3. systemctl start koha-worker at 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 at .service /etc/systemd/system/.
8. systemctl daemon-reload
9. systemctl restart koha-worker at kohadev.service
10. ps -efww | grep "background_jobs_worker"
11. Note that koha-worker is now running as kohadev-koha

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list