Thomas Vachuska
Committed by Gerrit Code Review

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
......@@ -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
......