Bug 22235

Summary: Make maintenance scripts use koha-sip instead of koha-*-sip
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: Command-line UtilitiesAssignee: Tomás Cohen Arazi <tomascohen>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: fridolin.somers, josef.moravec, kyle, lucas, martin.renvoize, mirko, nick, robin
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 18562    
Bug Blocks: 22238    
Attachments: Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip
Bug 22235: (follow-up) Make koha-remove stop SIP server if required
Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip
Bug 22235: (follow-up) Make koha-remove stop SIP server if required
Bug 22235: Make maintenance scripts use koha-sip instead of koha-*-sip
Bug 22235: (follow-up) Make koha-remove stop SIP server if required

Description Tomás Cohen Arazi 2019-01-30 12:29:07 UTC

    
Comment 1 Tomás Cohen Arazi 2019-01-30 12:46:42 UTC
Created attachment 84514 [details] [review]
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
Comment 2 Tomás Cohen Arazi 2019-01-30 12:46:47 UTC
Created attachment 84515 [details] [review]
Bug 22235: (follow-up) Make koha-remove stop SIP server if required
Comment 3 Kyle M Hall 2019-01-30 14:34:44 UTC
Getting this error at step 1:

root@48864c0cb6e1:kohadevbox$ perl misc4dev/cp_debian_files.pl
Cannnot open file No such file or directory at misc4dev/cp_debian_files.pl line 35.
Comment 4 Tomás Cohen Arazi 2019-01-30 18:13:33 UTC
(In reply to Kyle M Hall from comment #3)
> Getting this error at step 1:
> 
> root@48864c0cb6e1:kohadevbox$ perl misc4dev/cp_debian_files.pl
> Cannnot open file No such file or directory at misc4dev/cp_debian_files.pl
> line 35.

The instructions were for kohadevbox, that's why they don't work :-/

In koha-testing-docker you need to run like this:

root@b2cf8a1790c7:kohadevbox$ cd misc4dev
root@b2cf8a1790c7:misc4dev(master)$ perl cp_debian_files.pl --koha_dir /kohadevbox/koha --instance kohadev --gitify_dir /kohadevbox/gitify

Thanks for your interest!
Comment 5 Kyle M Hall 2019-02-05 15:53:11 UTC
Created attachment 84793 [details] [review]
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>
Comment 6 Kyle M Hall 2019-02-05 15:53:36 UTC
Created attachment 84794 [details] [review]
Bug 22235: (follow-up) Make koha-remove stop SIP server if required

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 7 Martin Renvoize 2019-02-11 08:41:46 UTC
Created attachment 84954 [details] [review]
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>
Comment 8 Martin Renvoize 2019-02-11 08:41:49 UTC
Created attachment 84955 [details] [review]
Bug 22235: (follow-up) Make koha-remove stop SIP server if required

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 9 Martin Renvoize 2019-02-11 08:42:14 UTC
Good job, Passing QA
Comment 10 Nick Clemens 2019-02-11 18:40:51 UTC
Awesome work all!

Pushed to master for 19.05
Comment 11 Martin Renvoize 2019-02-12 13:09:47 UTC
Pushed to 18.11.x for 18.11.03
Comment 12 Lucas Gass 2019-02-12 22:33:01 UTC
missing 18562, wont backport to 18.05.x