added jmx flags that turn off auth (for now)
[lwes-journaller-java.git] / src / bin / lwes-rotate-log
bloba59a772551eae602645e2441258359e86cb25803
1 #!/bin/bash
3 # Make sure we can run this script from any directory.
4 bin=`dirname "$0"`/..
5 bin=`cd "$bin"; pwd`
7 ##
8 # This script calls the TestEmitter to emit a Command::Rotate event that tell the journallers
9 # to rotate their log files.
11 for jar in ${bin}/lib/*.jar
13 if [ -z $CP ]; then
14 CP=${jar}
15 else
16 CP=${CP}:${jar}
18 done
19 CP=${CP}:${bin}/config
21 $JAVA_HOME/bin/java \
22 -Dcom.sun.management.jmxremote.authenticate=false \
23 -Dcom.sun.management.jmxremote.ssl=false \
24 -Dlog4j.configuration=log4j.xml \
25 -classpath $CP \
26 org.lwes.journaller.util.Rotate $@