#!/bin/sh
#
# HOD           This shell script starts the Host On-Demand server
#
# chkconfig: 345 85 15
# description: HOD is the Host On-Demand server \
# It is basically a server that Host On-Demand clients connect to.

JRE_HOME=/usr/local/jre # The base directory for the jre
HOD_HOME=/usr/local/HOD # The base directory where hod30srv.tar was installed

# The classpath for the Host On-Demand server
HOD_CLASSPATH="$JRE_HOME/lib/rt.jar:$JRE_HOME/lib/i18n.jar:$HOD_HOME/ondemand/lib:$HOD_HOME/ondemand/lib/sm.zip"

echo "Starting HOD..."

# The command to start the Host On-Demand server
${JRE_HOME}/bin/jre -classpath ${HOD_CLASSPATH} com.ibm.eNetwork.HODUtil.services.admin.NCServiceManager ${HOD_HOME}/ondemand &
