Managing HP Serviceguard for Linux, Tenth Edition, September 2012

# * configured in the package configuration file, then log *
# * messages that have a log level that is equal to or *
# * greater than the configured log level will be output. *
# * *
# * In addition, the format of the time stamp is prefixed in *
# * front of the log message. *
# * *
# * *
# **********************************************************************
#
###################################################################
###########################
# Source utility functions.
###########################
if [[ -z $SG_UTILS ]]
then
. /etc/cmcluster.conf
SG_UTILS=$SGCONF/scripts/mscripts/utils.sh
fi
if [[ -f ${SG_UTILS} ]]
then
. ${SG_UTILS}
if (( $? != 0 ))
then
echo "ERROR: Unable to source package utility functions file: ${SG_UTILS}"
exit 1
fi
else
echo "ERROR: Unable to find package utility functions file: ${SG_UTILS}"
exit 1
fi
#########################################################################
#
# start_command
#
# This function should define actions to take when the package starts
#
#########################################################################
function start_command
{
sg_log 5 "start_command"
# ADD your service start steps here
return 0
}
#########################################################################
#
# stop_command
#
# This function should define actions to take when the package halts
#
#
#########################################################################
function stop_command
{
344 Monitoring Script for Generic Resources