From e3ef89bfc3015542d710439472206137adc50811 Mon Sep 17 00:00:00 2001 From: Mason James Date: Fri, 24 Mar 2023 02:41:59 +1300 Subject: [PATCH] Bug 31729: renamed log file to plack-watcher.log to test... - 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-watcher.log \ /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 --- debian/scripts/koha-plack | 1 + debian/scripts/koha-watcher | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack index 44a1bcff4d..d9296b5fde 100755 --- a/debian/scripts/koha-plack +++ b/debian/scripts/koha-plack @@ -365,6 +365,7 @@ _check_and_fix_perms() local instance=$1 local files="/var/log/koha/${instance}/plack.log \ + /var/log/koha/${instance}/plack-watcher.log \ /var/log/koha/${instance}/plack-error.log" for file in ${files} diff --git a/debian/scripts/koha-watcher b/debian/scripts/koha-watcher index fe855b8d1a..ed796c4c2b 100755 --- a/debian/scripts/koha-watcher +++ b/debian/scripts/koha-watcher @@ -60,7 +60,7 @@ elif [ -z "$instance" ]; then fi tmpfile="/tmp/koha-watcher_${instance}.tmp" -logfile="/var/log/koha/${instance}/plack-error.log" +logfile="/var/log/koha/${instance}/plack-watcher.log" # watch perl files in a dir watch_dir() { -- 2.30.2