Bugzilla – Attachment 139566 Details for
Bug 31348
Plack stop should be graceful
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31348: Make koha-plack stop gracefully
Bug-31348-Make-koha-plack-stop-gracefully.patch (text/plain), 1.47 KB, created by
Marcel de Rooy
on 2022-08-22 07:06:34 UTC
(
hide
)
Description:
Bug 31348: Make koha-plack stop gracefully
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-08-22 07:06:34 UTC
Size:
1.47 KB
patch
obsolete
>From d6b9e05d22b10c1a43ec66c65d41fb84ec8e1240 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Fri, 12 Aug 2022 02:27:52 +0000 >Subject: [PATCH] Bug 31348: Make koha-plack stop gracefully >Content-Type: text/plain; charset=utf-8 > >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. Now at roughly the same time do the following two actions: > 3a. Go to http://localhost:8081/cgi-bin/koha/about.pl > 3b. koha-plack --stop kohadev >4. Note that the HTTP request completes >5. Click on "Home" >6. Note that the error is "Service Unavailable" rather than "Proxy Error", >which would've occurred with an interrupted HTTP request/response > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > debian/scripts/koha-plack | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack >index 3c12d3441c..497d6ffe53 100755 >--- a/debian/scripts/koha-plack >+++ b/debian/scripts/koha-plack >@@ -144,7 +144,7 @@ stop_plack() > > log_daemon_msg "Stopping Plack daemon for ${instancename}" > >- if start-stop-daemon --pidfile ${PIDFILE} --user="${instancename}-koha" --stop --retry=TERM/30/KILL/5; then >+ if start-stop-daemon --pidfile ${PIDFILE} --user="${instancename}-koha" --stop --retry=QUIT/30/KILL/5; then > log_end_msg 0 > else > log_end_msg 1 >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31348
:
139036
|
139525
| 139566