https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42468
--- Comment #4 from Kyle M Hall (khall) <[email protected]> --- Created attachment 199112 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199112&action=edit Bug 42468: Add systemd support for OCLC Connexion daemon Koha ships an OCLC Connexion import daemon that listens for connections from OCLC Connexion client or WorldShare Record Manager and creates records in Koha. The daemon was never bundled into the koha packaging with a helper script and an init unit, so sites using Connexion have had to roll their own service files and manage the daemon manually. This patch adds Connexion to the same backend-dispatching framework bug 40901 introduced for SIP/Plack/Zebra/etc. so it can be enabled, disabled, started, stopped, restarted, and queried with one via koha-connexion for both sysv and systemd. I've used SIP as the pattern because it is also an optional component that doesn't get started by default. Test Plan: 1) Apply this patch and rebuild the koha packages 2) Pick an instance you can test against ( e.g. kohadev ) 3) Create /etc/koha/sites/kohadev/connexion.conf such as: port: 5500 koha: http://localhost:8080 user: koha password: koha 4) Run: koha-connexion --enable kohadev 5) Run: koha-connexion --start kohadev 6) Run: koha-connexion --status kohadev 7) Note that the daemon is running 8) Run systemctl status [email protected] 9) Note that systemd reports the daemon as active! 8) Telnet to port 5500 For bonus points, send an valid connex message 10) Run koha-connexion --restart kohadev 11) Note that the daemon restarts cleanly 12) Run koha-list --connexion 13) Note kohadev is listed 14) Runkoha-list --noconnexion 15) Note that kohadev is not listed 12) Run koha-connexion --disable kohadev 13) Note that the daemon is stopped and disabled 14) Re-enable, then disable the entire instance: koha-connexion --enable kohadev koha-connexion --start kohadev koha-disable kohadev 15) Note that the Connexion daemon is also stopped and disabled Signed-off-by: Kyle M Hall <[email protected]> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ 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/
