Hi, Very good idea :D We at Biblibre have build a systemd unit for Starman and Zebra, it is quite simple. But we dont use several Koha. In ordre to implement for several Koha, I think we should use %i vars in systemd unit. Like it is in openvpn : https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/openvpn-client... It allows to call any unit (for example demo Koha) : systemctl start koha-common@demo. About restart : I see you can define a different kill signal than stop : https://www.freedesktop.org/software/systemd/man/systemd.kill.html#RestartKi... But you may use "reload" action instead : https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecRe... We use reload for starman it is more soft (it acts like apache gracefull restart). I attach some files here : https://git.biblibre.com/biblibre/koha-nginx/src/branch/master/etc/systemd/s... Feel free to ask for help. Best regards, Le 25/03/2021 à 04:42, dcook@prosentient.com.au a écrit :
Hi all,
I was just installing koha-common, as you do, and I noticed the following warning:
Failed to enable unit: Unit /run/systemd/generator.late/koha-common.service is transient or generated.
This is the product of the following command: “update-rc.d koha-common enable”
I think I was able to work around it by running the following: “/lib/systemd/systemd-sysv-install enable koha-common”
However, I’m thinking it is probably time to switch koha-common from SysV to Systemd. We’ll lose a bit of functionality for the “status” option, but otherwise it shouldn’t be too bad. I think we’ll lose the “restart” as well as I think the systemd restart is a “stop” and “start”.
David Cook
Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia
Office: 02 9212 0899
Online: 02 8005 0595
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/
-- Fridolin SOMERS <fridolin.somers@biblibre.com> Software and system maintainer 🦄 BibLibre, France