From c1ab7d2ec2522267dbf1190bbec349c96837b5fa Mon Sep 17 00:00:00 2001 From: Alex Buckley 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 --- 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