amsessiondb revision 0a99555401a033704f1f171baab6db11fb5528f2
# at opensso/legal/CDDLv1.0.txt.
### CR 6233176.Sets AM installation path at runtime to support AM
INSTALL_HOME=`/usr/sbin/swlist -a software_spec sun-identity-sfodb |grep -v "#" | tr -sd "\n" "" | ${AWK} -F ',' '{print $2}'| sed 's/l\=//'`
CLASSPATH=${IMQ_JAR_PATH}/imq.jar:${JMS_JAR_PATH}/jms.jar:${AM_HOME}/ext/je.jar:${AM_HOME}/locale:${AM_HOME}/lib/am_sessiondb.jar:.
RESTART=true
RESTART=false
RESTART=true
echo "Starting... $RESTART"
echo "$JAVA_HOME/bin/java $JAVA_OPTS -classpath $CLASSPATH com.sun.identity.ha.jmqdb.client.FAMHaDB"
$JAVA_HOME/bin/java $JAVA_OPTS -classpath "$CLASSPATH" com.sun.identity.ha.jmqdb.client.FAMHaDB "$@" &
_javapid=$!
wait $_javapid
_status=$?
if [ $_status -eq 0 -o $_status -eq 1 -o $_status -eq 129 -o $_status -eq 130 -o $_status -eq 143 ]; then
RESTART=false
RESTART=true
RESTART=false