HP CIFS Server 2.2i Administrator's Guide version A.01.11.01
Configuring HA HP CIFS
Overview of HA HP CIFS Server Active-Active
Chapter 7 177
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}
fi
fi
test_return 52
}
WARNING