mirror of
				https://github.com/opennetworkinglab/onos.git
				synced 2025-11-04 02:01:11 +01:00 
			
		
		
		
	Requires restart of any dev shell sessions that may have KARAF_VERSION=3.0.2 already set. Developers that have their own local Karaf will have to run 'onos-setup-karaf <ip-address>' command Change-Id: Iba234b3cd5af89de6dd249c97cac97525364cc34
		
			
				
	
	
		
			11 lines
		
	
	
		
			412 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			412 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
# ----------------------------------------------------------------------------
 | 
						|
# Continuously watches the Apache Karaf log; survives 'karaf clean'
 | 
						|
# ----------------------------------------------------------------------------
 | 
						|
KARAF_LOG=${KARAF_LOG:-~/apache-karaf-$KARAF_VERSION/data/log/karaf.log}
 | 
						|
 | 
						|
while true; do
 | 
						|
    [ ! -f $KARAF_LOG ] && sleep 2 && continue
 | 
						|
    tail -n 512 -f -F $KARAF_LOG
 | 
						|
done
 |