[Koha-devel] Starman workers reload via signal

Fridolin SOMERS fridolin.somers at biblibre.com
Fri Dec 15 12:32:07 CET 2017


Hi,

We recently found some interesting Starman feature.

Since it is a master/workers software there is, like in Apache, a way to 
"gracefully" rebuild the workers without stopping master :
kill -HUP 123 (123 being the master PID).

Unlike stop/start of starman, the used workers will not be stopped until 
there task is done. During that idle workers will indeed be killed and 
rebuild.
This is useful when one wants to refresh Plack persistence on a 
production running server.

See :
https://metacpan.org/pod/distribution/Starman/script/starman#SIGNALS

We used this in our systemd service for starman :
ExecReload=/bin/kill -HUP ${MAINPID}

This may be usefull in koha-plack.

Regards,

-- 
Fridolin SOMERS <fridolin.somers at biblibre.com>
BibLibre - software and system maintainer


More information about the Koha-devel mailing list