blob: ea93d7f7d9287b51f1c4890a18d99707cccfa717 [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# ----------------------------------------------------------------------------
Pavlin Radoslavovc5227052014-11-04 10:55:19 -08005KARAF_LOG=${KARAF_LOG:-~/apache-karaf-3.0.2/data/log/karaf.log}
tom1c15dd92014-08-26 18:55:38 -07006
7while true; do
8 [ ! -f $KARAF_LOG ] && sleep 2 && continue
9 tail -n 512 -f -F $KARAF_LOG
10done