]> git.koha-community.org Git - koha.git/commit
Bug 4880: Make koha-remove stop all instance's services
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Oct 2016 14:58:32 +0000 (11:58 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Oct 2016 16:42:36 +0000 (16:42 +0000)
commit607dac69a95e7bcb454661bfde71a45ee20d0155
treec687ca718698d496b17d91bab7ad0d9b5888c2bf
parente6e09c540fa42c4c3bc3a380494f6ea5637417f3
Bug 4880: Make koha-remove stop all instance's services

This patch makes koha-remove stop all instance's services before
attempting to remove the system user,

Before this patch, only zebra was stopped.

To test:
- Run:
  $ sudo koha-create --created-db favourite_name
- Run:
  $ sudo koha-remove favourite_name
=> FAIL: koha-indexer is still running for user favourite_name-koha
- Run:
  $ sudo koha-create --created-db another_name
  $ sudo koha-plack --enable another_name
  $ sudo koha-plack --start another_name
  $ sudo koha-indexer --stop another_name
  $ sudo koha-remove another_name
=> FAIL: koha-plack is still running for user another_name-koha
- Apply the patch
- Repeat the previous tests, with new names
=> SUCCESS: Everything works as expected :-D
- Sign off :-D

Signed-off-by: Lucio Moraes <lmoraes@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
debian/scripts/koha-remove