Bug 35242: Force memcache restart after koha upgrade

to test..

1/ install koha-common
    $ sudo apt install koha-common

2/ start memcached, check PID
    $ sudo service memcached start
    $ sudo systemctl status  memcached | grep PID
        Main PID: 52851 (memcached)

3/ build and install new koha-common package (will trigger a restart)
    $ sudo apt install ./koha-common-git+deadbeef.deb

5/ check that memcache is started, and has new PID (52900)
    $ sudo systemctl status  memcached | grep PID
        Main PID: 52900 (memcached)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Mason James 2023-11-03 11:56:51 +13:00 committed by Tomas Cohen Arazi
parent 9110547de0
commit 1fa096e7a0
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -276,6 +276,9 @@ db_stop
rabbitmq-plugins enable rabbitmq_stomp
service rabbitmq-server restart
# Bug 35242: Force memcache restart after koha install/upgrade
service memcached restart
# Bug 18250: Correct startup order of koha-common and memcached
# Since the init script has been updated, we can force the order in rc.d
# by disabling and enabling again.