Bugzilla – Attachment 142043 Details for
Bug 31729
Enable automatic filesystem refresh in Plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31729: watch only perl files
Bug-31729-watch-only-perl-files.patch (text/plain), 1.17 KB, created by
Mason James
on 2022-10-17 23:04:38 UTC
(
hide
)
Description:
Bug 31729: watch only perl files
Filename:
MIME Type:
Creator:
Mason James
Created:
2022-10-17 23:04:38 UTC
Size:
1.17 KB
patch
obsolete
>From 5c416e72e89e9ac96f9188ba6af756fb0cb4ba5e Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Sun, 16 Oct 2022 14:34:03 +1300 >Subject: [PATCH] Bug 31729: watch only perl files >Content-Type: text/plain; charset="utf-8" > >--- > debian/scripts/koha-watcher | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > >diff --git a/debian/scripts/koha-watcher b/debian/scripts/koha-watcher >index eac53a0517..954747a12b 100755 >--- a/debian/scripts/koha-watcher >+++ b/debian/scripts/koha-watcher >@@ -54,13 +54,12 @@ elif [ -z $instance ]; then > exit > fi > >-while inotifywait --recursive \ >- --event MODIFY \ >- --syslog \ >- --outfile /var/log/koha/$instance/plack-error.log \ >- --excludei 'swp$' \ >- $dir ; do >- kill -s HUP `cat /var/run/koha/$instance/plack.pid` >-done >+inotifywait --recursive -m --event CLOSE_WRITE $dir | \ >+ egrep '\.pl$|\.pm$' --line-buffered | \ >+ while read path events file; >+ do >+ echo "$events happened to $file in $path" >> /var/log/koha/$instance/plack-error.log >+ kill -s HUP `cat /var/run/koha/$instance/plack.pid` >+ done; > >-exit 0; >+exit 0 >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31729
:
141577
|
141578
|
141596
|
141597
|
141598
|
141714
|
141715
|
141716
|
142043
|
142044
|
142050
|
148600
|
148602
|
148603
|
148606
|
148612
|
148613
|
148720
|
154542
|
154601
|
154605
|
154676
|
154677