[Koha-bugs] [Bug 30897] Gracefully reload Koha after plugin install/upgrade

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 3 03:41:49 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30897

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |julian.maurice at biblibre.com
                   |                            |, kyle at bywatersolutions.com

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
We should be able to just run:

kill('HUP',$starman_master_pid);

However, the tough part is getting $starman_master_pid. As a human, I know the
PID for kohadev is stored at /var/run/koha/kohadev/plack.pid but Koha itself
doesn't know that.

The "koha-plack" script defines the PIDFILE like so:

local PIDFILE="/var/run/koha/${instancename}/plack.pid"

--

I suppose another option might be to invoke "koha-plack --reload
$instance_name" (after bug     
21366), but that would assume that it's a Debian package installation and that
we have the $instance_name, which we also don't have.

--

I suppose the other thing is that this would be Starman specific. I don't know
how it would work with Hypnotoad for instance. 

Based on https://metacpan.org/pod/Mojo::Server::Hypnotoad#MANAGER-SIGNALS it
looks like it's graceful restart is done via the USER2 signal rather than the
HUP signal.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list