HP Serviceguard Linux Oracle-Toolkit-A.05.01.00 User Guide (696983-001, June 2012)

SERVICE_FAIL_FAST_ENABLED no
SERVICE_HALT_TIMEOUT 300
Package control script
# **********************************************************************
# *HIGH AVAILABILITY PACKAGE CONTROL SCRIPT (template)*
# *Note: This file MUST be edited before it can be used.*
# *You must have bash version 2 installed for this script to work*
# *properly. Also required is the arping utility available in the*
# *iputils package.*
#**********************************************************************
SERVICE_NAME[0]="oracle_service"
SERVICE_CMD[0]="${SGCONF}/oracle_asmdb_legacy/toolkit.sh monitor"
SERVICE_RESTART[0]="-r 2"
SERVICE_NAME[1]="oracle_listener_service"
SERVICE_CMD[1]="${SGCONF}/oracle_asmdb_legacy/toolkit.sh monitor_listener"
SERVICE_RESTART[1]="-r 2"
SERVICE_NAME[2]="oracle_hang_service"
SERVICE_CMD[2]="${SGCONF}/oracle_asmdb_legacy/toolkit.sh hang_monitor 30 failure"
SERVICE_RESTART[2]="-r 2"
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
${SGCONF}/oracle_asmdb_legacy/toolkit.sh start
test_return 51
}
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
if [ $SG_HALT_REASON = "user_halt" ]; then
reason="user"
else
reason="auto"
fi
${SGCONF}/oracle_asmdb_legacy/toolkit.sh stop $reason
test_return 5
}
Sample package configuration file for Oracle ASM database legacy package 55