mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 10:21:52 +02:00
Added a watchLog tool
This commit is contained in:
parent
b1260e4946
commit
1c15dd913a
11
tools/dev/watchLog
Executable file
11
tools/dev/watchLog
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
#------------------------------------------------------------------------------
|
||||
# Continuously watches the Apache Karaf log; survives 'karaf clean'
|
||||
#------------------------------------------------------------------------------
|
||||
KARAF_LOG=${KARAF_LOG:-~/apache-karaf-3.0.1/data/log/karaf.log}
|
||||
|
||||
while true; do
|
||||
[ ! -f $KARAF_LOG ] && sleep 2 && continue
|
||||
tail -n 512 -f -F $KARAF_LOG
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user