Bug 20234

Summary: Make maintenance scripts use koha-zebra instead of koha-*-zebra
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: Command-line UtilitiesAssignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: CLOSED FIXED QA Contact: Josef Moravec <josef.moravec>
Severity: normal    
Priority: P5 - low CC: fridolin.somers, hagud, jonathan.druart, josef.moravec, nick, robin
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 17467    
Bug Blocks: 17468, 19610, 20745    
Attachments: Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra
Bug 20234: Update ervice description in koha-common.init
Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra
Bug 20234: Update ervice description in koha-common.init
Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra
Bug 20234: Update service description in koha-common.init

Description Tomás Cohen Arazi (tcohen) 2018-02-17 14:18:32 UTC
The koha-*-zebra commands are deprecated so they shouldn't be used.
Comment 1 Tomás Cohen Arazi (tcohen) 2018-02-17 14:51:17 UTC
Created attachment 71881 [details] [review]
Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra

This patch makes all maintenance scripts use **koha-zebra** instead of
the old **koha-*-zebra** scripts.

To test:
- Run:
  $ perl misc4dev/cp_debian_files.pl
  $ sudo service koha-common stop
=> SUCCESS: No errors and the Zebra-related sevices are stopped
  $ sudo service koha-common start
=> SUCCESS: No errors and the Zebra-related services are started
  $ sudo service koha-common restart
=> SUCCESS: No erros and Zebra-related services are running
  $ sudo koha-create --create-db test
=> SUCCESS: Instance created and zebra running for it
  $ sudo koha-disable test
=> SUCCESS: No errors and Zebra is stopped for instance test
  $ sudo koha-zebra --start test
  $ sudo koha-remove test
=> SUCCESS: No errors, instance removed, no Zebra running for test
- Sign off :-D

Sponsored-by: Orex Digital
Comment 2 Tomás Cohen Arazi (tcohen) 2018-02-17 14:51:24 UTC
Created attachment 71882 [details] [review]
Bug 20234: Update ervice description in koha-common.init

The service description is very old and outdated. This patch fixes this.

Sponsored-by: Orex Digital
Comment 3 Hugo Agud 2018-02-20 11:35:33 UTC
Created attachment 71995 [details] [review]
Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra

This patch makes all maintenance scripts use **koha-zebra** instead of
the old **koha-*-zebra** scripts.

To test:
- Run:
  $ perl misc4dev/cp_debian_files.pl
  $ sudo service koha-common stop
=> SUCCESS: No errors and the Zebra-related sevices are stopped
  $ sudo service koha-common start
=> SUCCESS: No errors and the Zebra-related services are started
  $ sudo service koha-common restart
=> SUCCESS: No erros and Zebra-related services are running
  $ sudo koha-create --create-db test
=> SUCCESS: Instance created and zebra running for it
  $ sudo koha-disable test
=> SUCCESS: No errors and Zebra is stopped for instance test
  $ sudo koha-zebra --start test
  $ sudo koha-remove test
=> SUCCESS: No errors, instance removed, no Zebra running for test
- Sign off :-D

Sponsored-by: Orex Digital

Signed-off-by: Hugo Agud hagud@orex.es
Comment 4 Hugo Agud 2018-02-20 11:35:36 UTC
Created attachment 71996 [details] [review]
Bug 20234: Update ervice description in koha-common.init

The service description is very old and outdated. This patch fixes this.

Sponsored-by: Orex Digital

Signed-off-by: Your Full Name <your_email>
Comment 5 Josef Moravec 2018-02-21 17:14:41 UTC
Created attachment 72038 [details] [review]
Bug 20234: Make maintenance scripts use koha-zebra instead of koha-*-zebra

This patch makes all maintenance scripts use **koha-zebra** instead of
the old **koha-*-zebra** scripts.

To test:
- Run:
  $ perl misc4dev/cp_debian_files.pl
  $ sudo service koha-common stop
=> SUCCESS: No errors and the Zebra-related sevices are stopped
  $ sudo service koha-common start
=> SUCCESS: No errors and the Zebra-related services are started
  $ sudo service koha-common restart
=> SUCCESS: No erros and Zebra-related services are running
  $ sudo koha-create --create-db test
=> SUCCESS: Instance created and zebra running for it
  $ sudo koha-disable test
=> SUCCESS: No errors and Zebra is stopped for instance test
  $ sudo koha-zebra --start test
  $ sudo koha-remove test
=> SUCCESS: No errors, instance removed, no Zebra running for test
- Sign off :-D

Sponsored-by: Orex Digital

Signed-off-by:  Hugo Agud hagud@orex.es

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 6 Josef Moravec 2018-02-21 17:14:45 UTC
Created attachment 72039 [details] [review]
Bug 20234: Update service description in koha-common.init

The service description is very old and outdated. This patch fixes this.

Sponsored-by: Orex Digital

Signed-off-by: Hugo Agud hagud@orex.es

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 7 Jonathan Druart 2018-02-27 18:59:42 UTC
Pushed to master for 18.05, thanks to everybody involved!
Comment 8 Nick Clemens (kidclamp) 2018-04-06 17:47:43 UTC
Awesome work all, backported to stable for 17.11.05
Comment 9 Fridolin Somers 2018-04-10 07:03:33 UTC
Pushed to 17.05.x for v17.05.11
Comment 10 Jonathan Druart 2018-05-14 21:27:12 UTC
(In reply to Fridolin SOMERS from comment #9)
> Pushed to 17.05.x for v17.05.11

Why? You did not pick bug 17467. You should revert this from 17.05.x
Comment 11 Fridolin Somers 2018-05-16 06:32:03 UTC
(In reply to Jonathan Druart from comment #10)
> (In reply to Fridolin SOMERS from comment #9)
> > Pushed to 17.05.x for v17.05.11
> 
> Why? You did not pick bug 17467. You should revert this from 17.05.x

I'm very sorry, I missed the dependency.
Revert pushed for v17.05.12