Bug 35242

Summary: Force memcache restart after koha upgrade
Product: Koha Reporter: Mason James <mtj>
Component: PackagingAssignee: Mason James <mtj>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: fridolin.somers, martin.renvoize, mtj
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.11.00,23.05.06,22.11.12
Circulation function:
Attachments: Bug 35242: Force memcache restart after koha upgrade
Bug 35242: Force memcache restart after koha upgrade

Description Mason James 2023-11-02 22:53:22 UTC
this bug tracks the progress of forcing a memcache restart after koha upgrade

more info here...
 https://lists.koha-community.org/pipermail/koha-devel/2023-October/048402.html
Comment 1 Mason James 2023-11-03 02:19:30 UTC
Created attachment 158298 [details] [review]
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)
Comment 2 Martin Renvoize (ashimema) 2023-11-03 09:38:38 UTC
Created attachment 158314 [details] [review]
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>
Comment 3 Martin Renvoize (ashimema) 2023-11-03 09:39:15 UTC
Trivial and clear fix, works as described, no regressions and scripts are all happy.

Going straight for a PQA here.
Comment 4 Tomás Cohen Arazi (tcohen) 2023-11-03 15:06:32 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 5 Fridolin Somers 2023-11-10 02:23:30 UTC
Pushed to 23.05.x for 23.05.06
Comment 6 Pedro Amorim 2023-11-14 14:50:31 UTC
Nice work everyone!

Pushed to 22.11.x for next release