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

Configuring HA HP CIFS
Overview of HA HP CIFS Server
Chapter 13 243
# Use the following for Winbind Configurations
# /opt/samba/bin/startwinbind
test_return 51
}
7. Use the following as a template for customer_defined_halt_cmds:
function customer_defined_halt_cmds
{
#ADD customer defined halt commands.
if [ ! -f ${SMBD_PID_FILE} ]
then
print "\tERROR: Kill of smbd.pid failed."
print "\tERROR: ${SMBD_PID_FILE} could not be found."
else
SMBD_PID=`cat ${SMBD_PID_FILE}`
findproc $SMBD_PID
if [ "$pid" = "" ]
then
print "\tERROR: Kill of smbd.pid failed."
print "\tERROR: ${SMBD_PID} could not be found."
else
kill ${SMBD_PID}
fi
fi
if [ ! -f ${NMBD_PID_FILE} ]
then
print "\tERROR: Kill of nmbd.pid failed."
print "\tERROR: ${NMBD_PID_FILE} could not be found."
else
NMBD_PID=`cat ${NMBD_PID_FILE}`
findproc $NMBD_PID
if [ "$pid" = "" ]
then
print "\tERROR: Kill of nmbd.pid failed."
print "\tERROR: ${NMBD_PID} could not be found."
else
kill ${NMBD_PID}