tom | 1c15dd9 | 2014-08-26 18:55:38 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 2 | # ---------------------------------------------------------------------------- |
tom | 1c15dd9 | 2014-08-26 18:55:38 -0700 | [diff] [blame] | 3 | # Continuously watches the Apache Karaf log; survives 'karaf clean' |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 4 | # ---------------------------------------------------------------------------- |
Thomas Vachuska | 5fdf5bf | 2016-11-04 15:10:13 +0100 | [diff] [blame] | 5 | . $ONOS_ROOT/tools/build/envDefaults |
| 6 | |
| 7 | KARAF_LOG=/tmp/onos-$ONOS_POM_VERSION/apache-karaf-$KARAF_VERSION/data/log/karaf.log |
tom | 1c15dd9 | 2014-08-26 18:55:38 -0700 | [diff] [blame] | 8 | |
| 9 | while true; do |
| 10 | [ ! -f $KARAF_LOG ] && sleep 2 && continue |
| 11 | tail -n 512 -f -F $KARAF_LOG |
| 12 | done |