Starman workers reload via signal

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Starman workers reload via signal

Fridolin SOMERS
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 <[hidden email]>
BibLibre - software and system maintainer
_______________________________________________
Koha-devel mailing list
[hidden email]
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/