#!/bin/sh
#
# Shut down the LibMON server and 
# shut down the license server
#
# __BASEDIR__ will get substituted after installation
#

# Set up the top and base directory
BASEDIR=__BASEDIR__
TOP=${BASEDIR}/SUNWlmon

#
# Set up the CLASSPATH
#
CLASSPATH=${TOP}/JRE/lib/rt.jar:${TOP}/JRE/lib/i18n.jar:${TOP}/classes/SUNWlmon.zip: 
export CLASSPATH

if [ $# -eq 0 ]; then

    # Invoke the shutdown client
    echo "Shutting down LibMON server ..."
    ${TOP}/JRE/bin/jre -D"atl.serverInstallDir=${TOP}" atl.server.Shutdown

else

    echo "Usage: $0"

fi
