git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@70 af16638f-c34d-0410-8cfa-b39d5352b314

This commit is contained in:
kajan85 2008-06-20 19:23:37 +00:00
parent bc2ecef852
commit 9637e0db20

View File

@ -0,0 +1,24 @@
#!/bin/bash
# JMX options
JMX_OPTS="-Djavax.net.ssl.keyStore=conf/keystore.jmx -Djavax.net.ssl.keyStorePassword=password"
# port, username, password
SHUTDOWN_OPTS="9999 red5user changeme"
for JAVA in "$JAVA_HOME/bin/java" "/usr/bin/java" "/usr/local/bin/java"
do
if [ -x $JAVA ]
then
break
fi
done
if [ ! -x $JAVA ]
then
echo "Unable to locate java. Please set JAVA_HOME environment variable."
exit
fi
# stop red5
exec $JAVA $JMX_OPTS -Djava.security.manager -Djava.security.policy=conf/red5.policy -cp red5.jar:conf:$CLASSPATH org.red5.server.Shutdown $SHUTDOWN_OPTS