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
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -31,7 +31,8 @@ else | ... | @@ -31,7 +31,8 @@ else |
31 | while true; do | 31 | while true; do |
32 | echo ================================================================== | 32 | echo ================================================================== |
33 | [ ! -f $LOG ] && sleep 2 && continue | 33 | [ ! -f $LOG ] && sleep 2 && continue |
34 | - tail -n 512 -f -F $LOG | 34 | + [ \$(uname) = "Darwin" ] && tail -n 512 -f -F $LOG || |
35 | + tail -n 512 --follow=name $LOG --pid \$$ --sleep-interval 2 | ||
35 | done | 36 | done |
36 | " | 37 | " |
37 | fi | 38 | fi | ... | ... |
-
Please register or login to post a comment