HP Serviceguard for Linux Version A.11.18 Deployment Guide, August 2008

36
SERVICE_CMD[0]="/usr/local/cmcluster/conf/ws/toolkit.sh monitor"
SERVICE_RESTART[0]="-r 0"
SERVICE_NAME[1]="diskmon"
SERVICE_CMD[1]="/usr/local/cmcluster/bin/cmresserviced_custom
/dev/mapper/mpath3"
SERVICE_RESTART[1]=""
SERVICE_FAIL_FAST_ENABLED[1]="no"
SERVICE_HALT_TIMEOUT[0]="300"
NOTE: Make sure the SERVICE_NAME’s match the names of the Services added
earlier under “Monitored Resources” in Step #3.
k. Locate the string “function customer_defined_run_cmds”.
l. Add the following customer defined run command,
“/usr/local/cmcluster/conf/ws/toolkit.sh start”, such that the function looks like the
following:
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because ..
/usr/local/cmcluster/conf/ws/toolkit.sh start
test_return 51
}
m. Locate the string “function customer_defined_halt_cmds”.
n. Add the following customer defined halt command,
“/usr/local/cmcluster/conf/ws/toolkit.sh stop”, such that the function looks like the
following:
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because ..
/usr/local/cmcluster/conf/ws/toolkit.sh stop
test_return 52
}
5. Then click “Save and Distribute”.
6. Check for any error messages in the Operations Log. If none, click “OK”.
7. Click “Close” in the “Edit Control Script” window.
8. Click “OK” on the “Create a Single Package” page.
9. Click “Check Configuration”.
10. Check for any error messages in the Operations Log. If none, click “OK”.
11. Click “Apply Configuration”.
12. Click “OK” in the pop-up dialog box.
Customize and Distribute Toolkit Files
To customize and distribute the Toolkit files and the httpd.conf file, perform the following steps:
1. Login to one of the cluster nodes, for example eve.
2. Change to the ws package directory.
cd /usr/local/cmcluster/conf/ws
3. Copy the Apache Toolkit files into the package directory.
cp /usr/local/cmcluster/apachetoolkit/* .
4. Edit hahttp.conf to change following line for the location of the httpd.conf file.
HTTPD_CONFIG_FILE="/usr/local/cmcluster/conf/ws/httpd.conf"
5. Copy the default httpd.conf file to the package directory, for example:
cp /etc/httpd/conf/httpd.conf .
6. Edit the package’s httpd.conf file. These tell the Apache instance (httpd) in the “ws” package
to use content from the shared volume group (/dev/vgws mounted at /ws) and specifies the
listen address to be the package’s relocatable IP address. Change the following directives,
for example: