Commit ea4b7410 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

More renaming work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7670 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3d8c14c7
# Connection settings for the embedded Wildfire database. # Connection settings for the embedded Openfire database.
urlid embedded-db urlid embedded-db
url jdbc:hsqldb:../../embedded-db/wildfire url jdbc:hsqldb:../../embedded-db/openfire
username sa username sa
password password
#!/bin/bash #!/bin/bash
export OPENFIRE_HOME=/usr/local/wildfire export OPENFIRE_HOME=/usr/local/openfire
export JAVA_HOME=/Library/Java/Home export JAVA_HOME=/Library/Java/Home
function shutdown() function shutdown()
{ {
date date
echo "Shutting down Openfire" echo "Shutting down Openfire"
kill -s TERM `ps auxww | grep -v wrapper | awk '/wildfire/ && !/awk/ {print $2}'` kill -s TERM `ps auxww | grep -v wrapper | awk '/openfire/ && !/awk/ {print $2}'`
} }
date date
echo "Starting Openfire" echo "Starting Openfire"
/usr/bin/java -server -jar "$OPENFIRE_HOME/lib/startup.jar" -Dwildfire.lib.dir=/usr/local/wildfire/lib& /usr/bin/java -server -jar "$OPENFIRE_HOME/lib/startup.jar" -Dopenfire.lib.dir=/usr/local/openfire/lib&
OPENFIRE_PID=`ps auxww | grep -v wrapper | awk '/wildfire/ && !/awk/ {print $2}'` OPENFIRE_PID=`ps auxww | grep -v wrapper | awk '/openfire/ && !/awk/ {print $2}'`
# allow any signal which would kill a process to stop Openfire # allow any signal which would kill a process to stop Openfire
trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP
......
...@@ -16,10 +16,10 @@ OPENFIRE_USER="jive" ...@@ -16,10 +16,10 @@ OPENFIRE_USER="jive"
OPENFIRE_GROUP="jive" OPENFIRE_GROUP="jive"
if [ ! $OPENFIRE_HOME ]; then if [ ! $OPENFIRE_HOME ]; then
if [ -d "/opt/wildfire" ]; then if [ -d "/opt/openfire" ]; then
OPENFIRE_HOME="/opt/wildfire" OPENFIRE_HOME="/opt/openfire"
elif [ -d "/usr/local/wildfire" ]; then elif [ -d "/usr/local/openfire" ]; then
OPENFIRE_HOME="/usr/local/wildfire" OPENFIRE_HOME="/usr/local/openfire"
fi fi
fi fi
......
...@@ -71,7 +71,7 @@ fi ...@@ -71,7 +71,7 @@ fi
#set the OPENFIRE_LIB location #set the OPENFIRE_LIB location
OPENFIRE_LIB="${OPENFIRE_HOME}/lib" OPENFIRE_LIB="${OPENFIRE_HOME}/lib"
OPENFIRE_OPTS="${OPENFIRE_OPTS} -Dwildfire.lib.dir=${OPENFIRE_LIB}" OPENFIRE_OPTS="${OPENFIRE_OPTS} -Dopenfire.lib.dir=${OPENFIRE_LIB}"
if [ -z "$JAVACMD" ] ; then if [ -z "$JAVACMD" ] ; then
......
...@@ -32,7 +32,7 @@ import java.util.jar.JarOutputStream; ...@@ -32,7 +32,7 @@ import java.util.jar.JarOutputStream;
* <li>Start the server</li> * <li>Start the server</li>
* </ul> * </ul>
* *
* Note: if the enviroment property <tt>wildfire.lib.directory</tt> is specified * Note: if the enviroment property <tt>openfire.lib.directory</tt> is specified
* ServerStarter will attempt to use this value as the value for openfire's lib * ServerStarter will attempt to use this value as the value for openfire's lib
* directory. If the property is not specified the default value of ../lib will be used. * directory. If the property is not specified the default value of ../lib will be used.
* *
...@@ -60,7 +60,7 @@ public class ServerStarter { ...@@ -60,7 +60,7 @@ public class ServerStarter {
// Load up the bootstrap container // Load up the bootstrap container
final ClassLoader parent = findParentClassLoader(); final ClassLoader parent = findParentClassLoader();
String libDirString = System.getProperty("wildfire.lib.dir"); String libDirString = System.getProperty("openfire.lib.dir");
File libDir; File libDir;
if (libDirString != null) { if (libDirString != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment