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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 23 11:26:36 CET 2023


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

Mason James <mtj at kohaaloha.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #141714|0                           |1
        is obsolete|                            |
 Attachment #141715|0                           |1
        is obsolete|                            |
 Attachment #142043|0                           |1
        is obsolete|                            |
 Attachment #142050|0                           |1
        is obsolete|                            |

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

to test (on KTD)

- install inotify-tools
  $ sudo apt install inotify-tools

- apply patch
  $ git bz apply 31729

- manually install files and set perms
  $ cd /kohadevbox/koha
  $ sudo cp debian/scripts/koha-plack   /usr/sbin
  $ sudo cp debian/scripts/koha-watcher /usr/sbin
  $ sudo chmod 755 /usr/sbin/koha-plack
  $ sudo chmod 755 /usr/sbin/koha-watcher

- restart, with --watch arg
  $ sudo koha-plack --restart --watch kohadev

- observe koha-watch process
  $ ps -ef | grep koha-watcher | grep -v grep | wc -l
  3

- modify some perl files in watched dir
  $ echo `date` >  /kohadevbox/koha/xxx.pl
  $ echo `date` >  /kohadevbox/koha/xxx.pm

- see HUP/inotify messages in log file
  $ tail -f /var/log/koha/kohadev/plack-error.log
  CLOSE_WRITE,CLOSE happened to xxx.pl in /kohadevbox/koha/
  CLOSE_WRITE,CLOSE happened to xxx.pm in /kohadevbox/koha/
  Sending children hup signal

- stop koha-plack
  $ sudo koha-plack --stop kohadev

- 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