HP CIFS Server 3.0b Administrator's Guide version A.02.01.01

Configuring HA HP CIFS
Overview of HA HP CIFS Server
Chapter 11 239
# /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}
#########################################################
# 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."