blob: d7f0c7eefdda417b2cfa1b91eea2afe73602c9b3 [file] [log] [blame]
tom1c15dd92014-08-26 18:55:38 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# ----------------------------------------------------------------------------
tom1c15dd92014-08-26 18:55:38 -07003# Continuously watches the Apache Karaf log; survives 'karaf clean'
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# ----------------------------------------------------------------------------
Thomas Vachuska5fdf5bf2016-11-04 15:10:13 +01005. $ONOS_ROOT/tools/build/envDefaults
6
7KARAF_LOG=/tmp/onos-$ONOS_POM_VERSION/apache-karaf-$KARAF_VERSION/data/log/karaf.log
tom1c15dd92014-08-26 18:55:38 -07008
9while true; do
10 [ ! -f $KARAF_LOG ] && sleep 2 && continue
11 tail -n 512 -f -F $KARAF_LOG
12done