|
Lines 54-66
elif [ -z $instance ]; then
Link Here
|
| 54 |
exit |
54 |
exit |
| 55 |
fi |
55 |
fi |
| 56 |
|
56 |
|
| 57 |
while inotifywait --recursive \ |
57 |
inotifywait --recursive -m --event CLOSE_WRITE $dir | \ |
| 58 |
--event MODIFY \ |
58 |
egrep '\.pl$|\.pm$' --line-buffered | \ |
| 59 |
--syslog \ |
59 |
while read path events file; |
| 60 |
--outfile /var/log/koha/$instance/plack-error.log \ |
60 |
do |
| 61 |
--excludei 'swp$' \ |
61 |
echo "$events happened to $file in $path" >> /var/log/koha/$instance/plack-error.log |
| 62 |
$dir ; do |
62 |
kill -s HUP `cat /var/run/koha/$instance/plack.pid` |
| 63 |
kill -s HUP `cat /var/run/koha/$instance/plack.pid` |
63 |
done; |
| 64 |
done |
|
|
| 65 |
|
64 |
|
| 66 |
exit 0; |
65 |
exit 0 |
| 67 |
- |
|
|