Koha/debian/scripts
David Cook e0f1110389
Bug 21366: Add koha-plack --reload to gracefully restart Plack/Starman
This patch adds a "--reload" option to koha-plack, which allows
a sysadmin to gracefully restart Koha.

This is very useful when installing Koha plugins or deploying a hot fix
where you need to change code but don't want to interrupt anyone's
usage of Koha.

0. Apply patch
1. cp /usr/sbin/koha-plack /usr/sbin/koha-plack.bak
2. cp debian/scripts/koha-plack /usr/sbin/koha-plack
3. ps -efww | grep "starman"
4. Now at roughly the same time do the following two actions:
    4a. Go to http://localhost:8081/cgi-bin/koha/about.pl
    4b. koha-plack --reload kohadev
5. Note that the web request completes successfully
6. ps -efww | grep "starman"
7. Note that the "starman master" process stays alive, but the "starman worker" processes have been restarted

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-26 15:52:02 -03:00
..
koha-create Bug 25622: Use special chars in DB password (koha-create) 2022-07-05 08:41:55 -03:00
koha-create-dirs
koha-disable
koha-dump Bug 21903: (follow-up) koha-dump can export uploaded and temporary uploaded files 2022-07-05 11:46:37 -03:00
koha-dump-defaults
koha-elasticsearch
koha-email-disable
koha-email-enable
koha-enable
koha-foreach
koha-functions.sh Bug 21903: koha-dump can export uploaded and temporary uploaded files 2022-07-05 11:46:37 -03:00
koha-indexer Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning 2022-08-18 09:00:39 -03:00
koha-list
koha-mysql Bug 30468: Restore 'set -e' and remove echos 2022-08-01 09:18:50 -03:00
koha-mysqlcheck
koha-passwd
koha-plack Bug 21366: Add koha-plack --reload to gracefully restart Plack/Starman 2022-08-26 15:52:02 -03:00
koha-rebuild-zebra
koha-remove
koha-reset-passwd
koha-restore Bug 10517: (QA follow-up) No need to remove second true 2022-05-03 11:19:50 -10:00
koha-run-backups
koha-shell Bug 28519: Add lib to koha-shell 2021-06-17 15:59:40 +02:00
koha-sip Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning 2022-08-18 09:00:39 -03:00
koha-sitemap
koha-translate Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
koha-upgrade-schema
koha-upgrade-to-3.4
koha-worker Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning 2022-08-18 09:00:39 -03:00
koha-z3950-responder Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning 2022-08-18 09:00:39 -03:00
koha-zebra Bug 30684: (follow-up) Use log_warning_msg for the "not running" warning 2022-08-18 09:00:39 -03:00