#!/sbin/sh
#------------------------------------------------------------------#
#
# HPUX_ID: @(#) $Revision: 17.3 $ generated on Wed Feb 21 17:19:34 MST 2001
#
# (c)Copyright 1983-2001 Hewlett-Packard Co.,  All Rights Reserved.
#
#------------------------------------------------------------------#
# SD verify script template for use with all patches.              #
#------------------------------------------------------------------#
# This file is optional for all patches.  The purpose of this      #
# script is to check for the correctness of the patch installation #
# and configuration.                                               #
#------------------------------------------------------------------#

_PATCHID=PHCO_23149

UTILS="/usr/lbin/sw/control_utils"

if [ ! -f $UTILS ]; then
    echo "ERROR:   Cannot find $UTILS"
    exit 1
fi

. $UTILS
exitval=$SUCCESS

#####
##### Insert any code you may require right here.
##### Pay attention to the exitval variable and set appropriately
##### in your code.  If you are unsure as to what types of operations
##### are legal in this file and what types aren't, consult the 
##### "Guidelines for SD Control Scripts" document.
#
#----------------------------------------------------------------------------
#-------------------------- Begin ESSD extended script ----------------------
#----------------------------------------------------------------------------
#
################################################################################
# Check for monitor daemons

  #if [[ -s ${SW_ROOT_DIRECTORY}etc/hparray/hparray.devs ]]
  #then
    ps -e | grep AM60Srvr > /dev/null 2> /dev/null
    if [ $? -eq 0 ]
    then
      echo "NOTE:    The \"AM60Srvr\" daemon is running"
    else
      echo "NOTE:    The \"AM60Srvr\" daemon is NOT running"
    fi 
    
    ps -e | grep hparamgrd > /dev/null 2> /dev/null
    if [ $? -eq 0 ]
    then
      echo "NOTE:    The \"hparamgrd\" daemon is running"  
    else
      echo "NOTE:    The \"hparamgrd\" daemon is NOT running"  
    fi 
  #else
  #  echo "NOTE:    No array devices found on system - daemons not started."
  #fi

################################################################################
#
#----------------------------------------------------------------------------
#------------------------ End ESSD extended script --------------------------
#----------------------------------------------------------------------------
#
#####
##### START_CUSTOMIZATION_HERE

exit $exitval
