Changed onos-log to allow for both Linux & Darwin (OSX) platforms to work. The --pid option is required in order for tail to wake-up when the owning process dies.

Change-Id: Ifb86517b0abfe1d781b15408e3619deacfeb2523
This commit is contained in:
Thomas Vachuska 2015-04-23 15:06:14 -07:00 committed by Gerrit Code Review
parent 239e588e04
commit 3430984652

View File

@ -31,7 +31,8 @@ else
while true; do
echo ==================================================================
[ ! -f $LOG ] && sleep 2 && continue
tail -n 512 -f -F $LOG
[ \$(uname) = "Darwin" ] && tail -n 512 -f -F $LOG ||
tail -n 512 --follow=name $LOG --pid \$$ --sleep-interval 2
done
"
fi