Kia ora Koha community,
I'd love to hear your thoughts please on adding the following behaviour across all koha-* scripts when passing the --restart parameter:
1. If the service is not running
2. You run sudo koha-<service> --restart
<instancename> , e.g. sudo koha-plack --restart kohadev
3. Koha stops the service, then starts it
Context
Bug 30684 was initially written to resolve the below error that is thrown when you try restarting plack, if it's not already running:
[FAIL] Error: Plack not running for <instancename>:
failed!
However, as Marcel noted the error is thrown by design: If you
didn't start it, you cannot restart it.
So it would be better to stop and then start the service. Also to
ensure this change was consistent, it should be implemented in all
koha-* scripts, not just koha-plack.
Is everyone happy for this change to be implemented in all koha-*
scripts?
Thanks,
Alex