[Koha-bugs] [Bug 21366] add plack reload
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 26 02:36:47 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21366
--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
(In reply to Andreas Jonsson from comment #8)
> Would it be too risky to send a HUP-signal to the plack process
> automatically when a plugin is reuploaded?
>
> I think that this would be very nice, as it would make plugins upgradable
> without command line access.
You know... I've been thinking about that idea for years but I never actually
tried it.
I just tried it now and it worked well!
With the Debian packages, each instance is run using a specific Linux user, and
it looks like that Linux user can HUP processes it owns, so yeah... it works.
--
In terms of risk, I suppose allowing a web user to affect background Linux
processes is not ideal. I have noticed that the REST API can be slow to startup
and can consume a lot of CPU, so I suppose the risk would be that an accident
or an attack could lead to a denial of service. But I think that's a fairly low
risk. After all, you can already do a DDOS by attacking the OPAC search
function.
So I think the risk is worth the reward.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list