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

David Cook <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |, [email protected]

--- Comment #1 from David Cook <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to