https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40901
--- Comment #7 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Ok, I gave this a go. To summarize: I introduced a new package `koha-systemd` with the result of my experimentation on how to handle per-instance Koha service units. It works like a charm on its own. Please refer to a separate project I made for illustration purposes [1]. If you have a running test server in which systemd is available, just follow the readme and test it yourself. It is just installing koha-systemd, disabling koha-common and following the instructions. That said, I then put it together here for upstream inclusion and I made the call to keep 'the old init' for the sake of having a lean path for introducing this change without breaking every single CI and workflow the community has. The approach is: 1) Make `koha-common` a meta-package that depends on `koha-init`. The latter is a virtual package provided by either `koha-systemd` or `koha-sysv` in that order. If `systemd` is not available, the `koha-systemd` is not installable so it falls back to `koha-sysv`. 2) `koha-common` now also depends on `koha-core` which pulls all the other deps. 3) KTD could do `apt install koha-sysv koha-core` instead of `koha-common`. We'll see later. Please analyze the proposed implementation. Take the time to test the package I created in the external repository to ease testing. TODO: All `koha-*` scripts that deal with daemons e.g. `koha-plack`, `koha-zebra`, etc need to be added a detection mechanism so they do the right thing on each context. It should be straight-forward to implement too. Will submit if there's consensus. [1] https://github.com/thekesolutions/koha-systemd -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
