[Koha-devel] Replacing koha-plack, koha-start-zebra, etc with systemd services?

Fridolin SOMERS fridolin.somers at biblibre.com
Tue Nov 13 09:57:02 CET 2018


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-init.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 at 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 at biblibre.com>
BibLibre, France - software and system maintainer
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: koha-indexer.service
Type: text/x-dbus-service
Taille: 338 octets
Desc: non disponible
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20181113/f4340baa/attachment.bin>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: koha-zebra.service
Type: text/x-dbus-service
Taille: 366 octets
Desc: non disponible
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20181113/f4340baa/attachment-0001.bin>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: starman.service
Type: text/x-dbus-service
Taille: 841 octets
Desc: non disponible
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20181113/f4340baa/attachment-0002.bin>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: koha-sip.service
Type: text/x-dbus-service
Taille: 350 octets
Desc: non disponible
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20181113/f4340baa/attachment-0003.bin>
-------------- section suivante --------------
PERL5LIB=/home/koha/src
KOHA_CONF=/home/koha/etc/koha-conf.xml
STARMAN_MAXREQ=50
STARMAN_WORKERS=2


More information about the Koha-devel mailing list