Bugzilla – Attachment 84954 Details for
Bug 22235
Make maintenance scripts use koha-sip instead of koha-*-sip
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip
Bug-22235-Make-maintenance-scripts-use-koha-sip-in.patch (text/plain), 3.73 KB, created by
Martin Renvoize (ashimema)
on 2019-02-11 08:41:46 UTC
(
hide
)
Description:
Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-02-11 08:41:46 UTC
Size:
3.73 KB
patch
obsolete
>From 092edcff3cb37274a67b530c8693c3120b4a3195 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <kyle@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 @@ > > <refsect2><title>SIP2-related</title> > <variablelist> >+ <varlistentry> >+ <term><option>koha-sip</option></term> >+ <listitem> >+ <para>Manage the SIP server for named Koha instances.</para> >+ </listitem> >+ </varlistentry> > > <varlistentry> > <term><option>koha-enable-sip</option></term> >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 <lars@catalyst.net.nz> >@@ -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.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22235
:
84514
|
84515
|
84793
|
84794
| 84954 |
84955