Thanks, Frido! Looking forward to taking a look. I'd love to replace the crontab some day too! David Cook Systems Librarian Prosentient Systems 72/330 Wattle St Ultimo, NSW 2007 Australia Office: 02 9212 0899 Direct: 02 8005 0595 -----Original Message----- From: koha-devel-bounces@lists.koha-community.org [mailto:koha-devel-bounces@lists.koha-community.org] On Behalf Of Fridolin SOMERS Sent: Tuesday, 13 November 2018 7:57 PM To: koha-devel@lists.koha-community.org Subject: Re: [Koha-devel] Replacing koha-plack, koha-start-zebra, etc with systemd services? Hi, Welcome to a new world of SystemD. We run all services with it (on Ubuntu Xenial) : starman, zebra server, zebra indexing and SIP server. Its really easy. We have added some tricks in ExecStartPre and ExecPostStop. Starman launcher uses a config file plack.cfg to allow workers tuning from koha home (awesome). Nginx and Memcached packages uses system launchers. Here are our files, dont hesitate to ask for more details. In the future, we would like to replace crontab. Play with : systemctl --no-legend --all list-units starman.service koha-*.service Regards, Le 23/10/2018 à 04:07, David Cook a écrit :
Hi all,
I'm about to start working on a systemd service for running Plack (for a non-package Koha install), and I was wondering if anyone else has thought about or is using systemd services for Plack, Zebra, etc.
Mason did a great job with a systemd service https://github.com/KohaAloha/koha-mysql-init/blob/master/koha-mysql-in it.ser vice for getting around the autoincrement issue (fixed in MySQL 8.0 https://dev.mysql.com/doc/refman/8.0/en/innodb-auto-increment-handling .html and MariaDB 10.2.4 https://mariadb.com/kb/en/library/auto_increment/).
Anyway, once I've got something working, I'm happy to share it. Curious if anyone has any systemd unit files they'd like to share.
David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St
Ultimo, NSW 2007
Australia
Office: 02 9212 0899
Direct: 02 8005 0595
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Fridolin SOMERS <fridolin.somers@biblibre.com> BibLibre, France - software and system maintainer