koha-restart-zebra should check stuff like if the instance exists, if its enabled, if zebra isn't already running, etc.
Created attachment 17795 [details] [review] Bug 10149 - 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 17796 [details] [review] Bug 10149 - koha-restart-zebra error handling koha-restart-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 17797 [details] [review] Bug 10149 - koha-restart-zebra error handling (rewording) koha-restart-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Edit: changed some wording problems. Sponsored-by: Universidad Nacional de Córdoba
Created attachment 17808 [details] [review] Bug 10149 - koha-restart-zebra error handling (rewording) koha-restart-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Edit: - changed some wording problems. - fixed an error in parameter validation Sponsored-by: Universidad Nacional de Córdoba
Before patch restart without and instance name silently fails, after patch ./debian/scripts/koha-restart-zebra Restart Zebra for Koha instances. Usage: ./debian/scripts/koha-restart-zebra instancename1 instancename2... Missing instance name... ./debian/scripts/koha-restart-zebra p Unknown instance p. sudo ./debian/scripts/koha-restart-zebra persona Restarting Zebra server for persona sudo ./debian/scripts/koha-stop-zebra persona Stopping Zebra server for persona sudo ./debian/scripts/koha-restart-zebra persona 2013-04-30 16:20:42 christopher pts/3 Zebra does not appear to have been running for instance persona. Starting Zebra server for persona
Created attachment 17830 [details] [review] Signed off patch
Created attachment 17840 [details] [review] Bug 10149 - koha-restart-zebra error handling (rewording) koha-restart-zebra now - Checks the instance exists. - Checks the instance is enabled. - Checks if the zebra daemon is already running. Regards To+ Edit: - changed some wording problems. - fixed an error in parameter validation Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Mason James <mtj@kohaaloha.com>
> Sponsored-by: Universidad Nacional de Córdoba > Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > Signed-off-by: Mason James <mtj@kohaaloha.com> passing QA on this patch...
This patch has been pushed to master and 3.12.x.
Pushed to 3.10.x will be in 3.10.6
Pushed to 3.8.x, will be in 3.8.14