From 75ae9d501bfdd4b264cfb0a8f1e04ae3c6a86cf7 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 8 Oct 2014 18:27:12 +0200 Subject: Add an option to disable inotify to fail -f commands. OverlayFS doesn't work well with inotify. --- scripts/vyatta-monitor | 2 +- templates/monitor/log/node.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vyatta-monitor b/scripts/vyatta-monitor index 22867e8..9c846b0 100755 --- a/scripts/vyatta-monitor +++ b/scripts/vyatta-monitor @@ -3,5 +3,5 @@ declare awkmatch="$2" for i in "${@:3}"; do awkmatch+="|$i" done -tail -f /var/log/messages \ +tail ---disable-inotify -f /var/log/messages \ | awk "/$awkmatch/{ \$5=\" $1:\"; for (f=5; f<=NF; ++f) {printf(\"%s \", \$f);}; printf(\"\n\") }" diff --git a/templates/monitor/log/node.def b/templates/monitor/log/node.def index 3c3413d..04995b5 100644 --- a/templates/monitor/log/node.def +++ b/templates/monitor/log/node.def @@ -1,2 +1,2 @@ help: Monitor last lines of messages file -run: tail --follow=name /var/log/messages +run: tail ---disable-inotify --follow=name /var/log/messages -- cgit v1.2.3