[Bug 33371] New: Add 'koha-common.service' systemd service
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Bug ID: 33371 Summary: Add 'koha-common.service' systemd service Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Packaging Assignee: koha-bugs@lists.koha-community.org Reporter: mtj@kohaaloha.com QA Contact: testopia@bugs.koha-community.org CC: mtj@kohaaloha.com this bug tracks the progress of adding 'koha-common.service' as a systemd service -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |mtj@kohaaloha.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #1 from Mason James <mtj@kohaaloha.com> --- Created attachment 149060 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149060&action=edit Bug 33371: Add 'koha-common.service' systemd service to test - install current package - note following $message on install 'Failed to enable unit: Unit /run/systemd/generator.late/koha-common.service is transient or generated.' - apply patch, build package, install new package - note $message is gone! :) - test koha-common.service # systemctl start koha-common # systemctl status koha-common | grep running Active: active (running) since Sun 2023-04-02 00:27:31 NZDT <<< # systemctl stop koha-common # systemctl status koha-common | grep dead Active: inactive (dead) since Sun 2023-04-02 00:25:34 NZDT <<< -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com, tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #149060|0 |1 is obsolete| | --- Comment #2 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 151474 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151474&action=edit Bug 33371: Add 'koha-common.service' systemd service to test - install current package - note following $message on install 'Failed to enable unit: Unit /run/systemd/generator.late/koha-common.service is transient or generated.' - apply patch, build package, install new package - note $message is gone! :) - test koha-common.service # systemctl start koha-common # systemctl status koha-common | grep running Active: active (running) since Sun 2023-04-02 00:27:31 NZDT <<< # systemctl stop koha-common # systemctl status koha-common | grep dead Active: inactive (dead) since Sun 2023-04-02 00:25:34 NZDT <<< Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |23.05.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Pushed to master for 23.05. Nice work everyone, thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- I don't know about this one... It feels hacky and yet it should work. On one hand, it would be nice to convert from the SysV init script to a Systemd unit. On the other hand, Systemd doesn't work well for containers. Maybe we should have a script or scripts that are called by either the SysV init, Systemd, or whatever management program we choose. That's for the future though I think... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nugged@gmail.com --- Comment #5 from Andrew Nugged <nugged@gmail.com> --- PROBLEM! On my Ubuntu 20.04 LTS it doesnt comes up after REBOOT (!!!). So I need manually run "service koha-common start". AFTER REBOOT: #> service koha-common status ● koha-common.service - Start required services for each Koha instance Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled) Active: inactive (dead) I found that on my server koha-common.service lacks for [Install] WantedBy=multi-user.target without this, it dies: #> systemctl enable koha-common ``` Synchronizing state of koha-common.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable koha-common The unit files have no installation config (WantedBy=, RequiredBy=, Also=, Alias= settings in the [Install] section, and DefaultInstance= for template units). This means they are not meant to be enabled using systemctl. ``` and with "Install" block it now ok: #> systemctl enable koha-common ``` Synchronizing state of koha-common.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable koha-common Created symlink /etc/systemd/system/multi-user.target.wants/koha-common.service → /lib/systemd/system/koha-common.service. ``` And on reboot now I have it ALIVE! #> service koha-common status ● koha-common.service - Start required services for each Koha instance Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled) Active: active (running) since Thu 2023-06-01 05:15:09 EEST; 14s ago -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to master |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #6 from Mason James <mtj@kohaaloha.com> --- Created attachment 151926 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151926&action=edit Bug 33371: Add [Install] section to koha-common.service to test: 1/ install pkg, reboot, note service is not started 2/ add patch, build package 3/ install pkg, reboot, note service is started! :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Mason James <mtj@kohaaloha.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151926|0 |1 is obsolete| | --- Comment #7 from Mason James <mtj@kohaaloha.com> --- Created attachment 151927 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151927&action=edit Bug 33371: Add [Install] section to koha-common.service to test: 1/ install pkg, reboot, note service is not 'active' 2/ add patch, build package 3/ install pkg, reboot, note service is 'active' :) root@deb11:/etc# systemctl status koha-common * koha-common.service - Start required services for each Koha instance Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled) <<<< Active: active (exited) since Thu 2023-06-01 12:45:08 UTC; 13min ago Tasks: 0 (limit: 2244) Memory: 0B CPU: 0 CGroup: /system.slice/koha-common.service Jun 01 12:45:08 deb11 systemd[1]: Starting Start required services for each Koha instance... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151927|0 |1 is obsolete| | --- Comment #8 from Andrew Nugged <nugged@gmail.com> --- Created attachment 151929 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151929&action=edit [PATCH] Bug 33371: Add [Install] section to koha-common.service to test: 1/ install pkg, reboot, note service is not 'active' 2/ add patch, build package 3/ install pkg, reboot, note service is 'active' :) root@deb11:/etc# systemctl status koha-common * koha-common.service - Start required services for each Koha instance Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled) <<<< Active: active (exited) since Thu 2023-06-01 12:45:08 UTC; 13min ago Tasks: 0 (limit: 2244) Memory: 0B CPU: 0 CGroup: /system.slice/koha-common.service Jun 01 12:45:08 deb11 systemd[1]: Starting Start required services for each Koha instance... Signed-off-by: Andrew Nugged <nugged@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #151929|0 |1 is obsolete| | --- Comment #9 from Andrew Nugged <nugged@gmail.com> --- Created attachment 151930 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151930&action=edit Bug 33371: Add [Install] section to koha-common.service to test: 1/ install pkg, reboot, note service is not 'active' 2/ add patch, build package 3/ install pkg, reboot, note service is 'active' :) root@deb11:/etc# systemctl status koha-common * koha-common.service - Start required services for each Koha instance Loaded: loaded (/etc/init.d/koha-common; enabled; vendor preset: enabled) <<<< Active: active (exited) since Thu 2023-06-01 12:45:08 UTC; 13min ago Tasks: 0 (limit: 2244) Memory: 0B CPU: 0 CGroup: /system.slice/koha-common.service Jun 01 12:45:08 deb11 systemd[1]: Starting Start required services for each Koha instance... Signed-off-by: Andrew Nugged <nugged@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|23.05.00 |23.11.00,23.05.00 released in| | Status|Passed QA |Pushed to master -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #10 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Pushed to master for 23.05. Nice work everyone, thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|23.11.00,23.05.00 |23.11.00,23.05.00,22.11.07 released in| | Status|Pushed to master |Pushed to stable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 --- Comment #11 from Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> --- Nice work everyone! Pushed to stable for 22.11.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33371 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to stable |Pushed to oldstable CC| |fridolin.somers@biblibre.co | |m -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org