mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-04 19:56:49 +02:00
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:
parent
239e588e04
commit
3430984652
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user