Bugzilla – Attachment 134665 Details for
Bug 30684
koha-* scripts --restart should start even when not running
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30684: When Plack is not running koha-plack --restart should warn and then start Plack
Bug-30684-When-Plack-is-not-running-koha-plack---r.patch (text/plain), 1.43 KB, created by
David Nind
on 2022-05-05 21:20:53 UTC
(
hide
)
Description:
Bug 30684: When Plack is not running koha-plack --restart should warn and then start Plack
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-05-05 21:20:53 UTC
Size:
1.43 KB
patch
obsolete
>From c1ab7d2ec2522267dbf1190bbec349c96837b5fa Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Thu, 5 May 2022 14:51:29 +1200 >Subject: [PATCH] Bug 30684: When Plack is not running koha-plack --restart > should warn and then start Plack > >Test plan: >1. Stop plack > >2. Run: sudo koha-plack --restart {instance} > >3. Observe you get the error: "Error: Plack not running for ${instancename}" and that plack is not started > >4. Apply patch. > >5. If you are using kohadevbox you must copy koha-plack to /usr/sbin/: >sudo cp debian/scripts/koha-plack /usr/sbin/koha-plack > >6. Run: sudo koha-plack --restart {instance} > >7. Confirm you get a warning: "Plack not running for ${instancename}. >Starting plack now" and that plack is started > >Sponsored-by: Catalyst IT > >Signed-off-by: David Nind <david@davidnind.com> >--- > debian/scripts/koha-plack | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack >index 3dcce331a9..f42c0cad1b 100755 >--- a/debian/scripts/koha-plack >+++ b/debian/scripts/koha-plack >@@ -164,8 +164,8 @@ restart_plack() > if is_plack_running ${instancename}; then > stop_plack $instancename && start_plack $instancename > else >- log_daemon_msg "Error: Plack not running for ${instancename}" >- log_end_msg 1 >+ warn "Plack not running for ${instancename}. Starting plack now" >+ start_plack $instancename > fi > } > >-- >2.30.2
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 30684
:
134622
|
134665
|
135747
|
137738
|
139247
|
139305
|
139345
|
139346