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 | 5630c61 | 2015-03-24 12:24:12 -0700 | [diff] [blame] | 5 | KARAF_LOG=${KARAF_LOG:-~/apache-karaf-$KARAF_VERSION/data/log/karaf.log} |
tom | 1c15dd9 | 2014-08-26 18:55:38 -0700 | [diff] [blame] | 6 | |
| 7 | while true; do |
| 8 | [ ! -f $KARAF_LOG ] && sleep 2 && continue |
| 9 | tail -n 512 -f -F $KARAF_LOG |
| 10 | done |