koha-stop-zebra should check stuff like if the instance exists, if its enabled, if zebra isn't already running, etc.
Created attachment 17789 [details] [review] Bug 10146 - koha-stop-zebra error handling koha-stop-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Sponsored-by: Universidad Nacional de Córdoba
Created attachment 17810 [details] [review] Bug 10146 - koha-stop-zebra error handling koha-stop-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Sponsored-by: Universidad Nacional de Córdoba
Everything works fine, except we get a double up on the usage statement now ./debian/scripts/koha-stop-zebra Stops Zebra for Koha instances. Usage: ./debian/scripts/koha-stop-zebra instancename1 instancename2... Usage: ./debian/scripts/koha-stop-zebra instancename...
Created attachment 17843 [details] [review] Bug 10146 - koha-stop-zebra error handling koha-stop-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Edit: Corrected the die message Sponsored-by: Universidad Nacional de Córdoba
Created attachment 18107 [details] [review] Bug 10146 - koha-stop-zebra error handling koha-stop-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Edit: Corrected the die message Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
This patch has been pushed to master and 3.12.x.
Pushed to 3.10.x, will be in 3.10.7
Pushed to 3.8.x, will be in 3.8.14