From 4f8ffebbd72d6d4856a3f486f45caf281caf2e06 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 30 Jan 2019 09:37:47 -0300 Subject: [PATCH] Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip This patch makes all maintenance scripts use **koha-sip** instead of the old **koha-*-sip** scripts. To test: - Run: $ perl misc4dev/cp_debian_files.pl $ sudo service koha-common stop => SUCCESS: No errors and the SIP-related sevices are stopped $ sudo service koha-common start => SUCCESS: No errors and the SIP-related services are started $ sudo service koha-common restart => SUCCESS: No erros and SIP-related services are running $ sudo koha-create --create-db test $ sudo koha-sip --enable test $ sudo koha-sip --start test $ sudo koha-disable test => SUCCESS: No errors, instance disabled, no SIP running for test - Sign off :-D Signed-off-by: Kyle M Hall --- debian/docs/koha-common.xml | 6 ++++++ debian/koha-common.init | 9 ++++----- debian/scripts/koha-disable | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/debian/docs/koha-common.xml b/debian/docs/koha-common.xml index 96a9cf4b8c..492545b8e1 100644 --- a/debian/docs/koha-common.xml +++ b/debian/docs/koha-common.xml @@ -174,6 +174,12 @@ SIP2-related + + + + Manage the SIP server for named Koha instances. + + diff --git a/debian/koha-common.init b/debian/koha-common.init index a223ec6076..99df08b26b 100755 --- a/debian/koha-common.init +++ b/debian/koha-common.init @@ -10,7 +10,7 @@ # if enabled, start: # - a Zebra server (using koha-zebra) # - a Plack server (using koha-plack) -# - a SIP server (using koha-start-sip) +# - a SIP server (using koha-sip) ### END INIT INFO # Author: Lars Wirzenius @@ -58,7 +58,7 @@ do_start() # We insure all required directories exist, including disabled ones. koha-create-dirs $(koha-list) koha-zebra --start $(koha-list --enabled) - koha-start-sip $(koha-list --enabled) + koha-sip --start $(koha-list --enabled --sip) koha-plack --start $(koha-list --enabled --plack) if [ "$USE_INDEXER_DAEMON" = "yes" ]; then @@ -73,7 +73,7 @@ do_stop() { # We stop everything, including disabled ones. koha-zebra --stop $(koha-list) || true - koha-stop-sip $(koha-list) || true + koha-sip --stop $(koha-list --sip) koha-plack --stop --quiet $(koha-list --enabled --plack) if [ "$USE_INDEXER_DAEMON" = "yes" ]; then @@ -86,8 +86,7 @@ do_stop() # do_reload() { koha-zebra --restart $(koha-list --enabled) - koha-stop-sip $(koha-list) || true - koha-start-sip $(koha-list --enabled) + koha-sip --restart $(koha-list --enabled --sip) koha-plack --restart --quiet $(koha-list --enabled --plack) if [ "$USE_INDEXER_DAEMON" = "yes" ]; then diff --git a/debian/scripts/koha-disable b/debian/scripts/koha-disable index e9169f1a21..6332303f0b 100755 --- a/debian/scripts/koha-disable +++ b/debian/scripts/koha-disable @@ -64,7 +64,7 @@ do if [ "$RET" = 0 ]; then restart_apache="yes" if is_sip_enabled $name; then - koha-stop-sip $name + koha-sip --stop $name fi if is_zebra_running $name; then koha-zebra --stop $name -- 2.17.2 (Apple Git-113)