[Koha-bugs] [Bug 31729] Enable automatic filesystem refresh in Plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 12 08:25:42 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31729

Mason James <mtj at kohaaloha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #141596|0                           |1
        is obsolete|                            |
 Attachment #141597|0                           |1
        is obsolete|                            |
 Attachment #141598|0                           |1
        is obsolete|                            |

--- Comment #11 from Mason James <mtj at kohaaloha.com> ---
Created attachment 141714
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141714&action=edit
Bug 31729: Enable automatic filesystem refresh in Plack

to test:

0/ apt install inotify-tools

1/ apply patch

2/ copy files, and set perms manually
 sudo cp debian/script/koha-plack  /usr/sbin
 sudo cp debian/script/koha-watcher to /usr/sbin
 sudo chmod 755 debian/script/koha-plack  /usr/sbin/koha-plack
 sudo chmod 755 debian/script/koha-watcher to /usr/sbin/koha-watcher

3/ koha-plack --start --watch kohadev

4/ pat a kitten 🐱

5/ modify file in watched dir
 echo `date` >  /usr/share/koha/xxx1
 echo `date` >  /usr/share/koha/xxx2

6/ see HUP/inotify messages in log file
 $ tail -f /var/log/koha/kohadev/plack-error.log
 /usr/share/koha/ MODIFY xxx1
 Sending children hup signal
 /usr/share/koha/ MODIFY xxx2
 Sending children hup signal

7/ observe koha-watch process
  ps -ef | grep koha-watcher | grep -v grep | wc -l
  1

8/ koha-plack --stop kohadev

9/ observe no koha-watch process
  ps -ef | grep koha-watcher | grep -v grep | wc -l
  0

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list