HP CIFS Server 3.0a Administrator's Guide version A.02.01

Configuring HA HP CIFS
Overview of HA HP CIFS Server
Chapter 13242
5. If you want to use the HP CIFS Server monitor script, set the
NFS_SERVICE_NAME variable to the value of the SERVICE_NAME
variable in the package configuration file samba.conf.
SERVICE_NAME[0]=samba_mon1
SERVICE_CMD[0]=/etc/cmcluster/sambapkg1/samba.mon
6. Use the following as a template for customer_defined_run_cmds.
NETBIOS_NAME=ha_server1
CONF_FILE=/etc/opt/samba/smb.conf.${NETBIOS_NAME}
LOG_FILE=/var/opt/samba/${NETBIOS_NAME}/log
SMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/smbd.
pid
NMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/nmbd.
pid
#########################################################
# Use the following for Winbind Configurations
# WINBIND_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/
# winbindd.pid
findproc() { # return pid of the named
process(es)
pid=`/usr/bin/ps -e |
/usr/bin/grep "$1" | grep "mbd" |
/usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
}
##########################################################
# Winbind Configurations
# findwbproc() { # return pid of the named
process(es)
# wbpid=‘/usr/bin/ps -e |
# /usr/bin/grep " $1 " | grep "winbindd" |
# /usr/bin/sed -e ’s/^ *//’ -e ’s/ .*//’‘
# }
function customer_defined_run_cmds
{
# ADD customer defined run commands.
nmbd -D -l ${LOG_FILE} -s ${CONF_FILE}
smbd -D -s ${CONF_FILE}
#########################################################