#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
#  
#  
# Licensed Materials - Property of IBM 
#  
# (C) COPYRIGHT International Business Machines Corp. 1998,2019 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
#
#@(#)56   1.2   src/rsct/hasynch.sh, availability, rsct_rady, rady2035a 5/1/98 17:37:58
#
# Provide a mechanism to allow RVSD to synchronize recovery with HACMP.
# Gracefully shutdown HACMP on the node, with failover.  If the control
# program (clstop) does not exist, assume HACMP is not installed and
# simply return.
#
if [[ -x /usr/es/sbin/cluster/utilities/clstop ]]
then
  /usr/es/sbin/cluster/utilities/clstop -gr -s -y
else
  if [[ -x /usr/sbin/cluster/utilities/clstop ]]
  then
    /usr/sbin/cluster/utilities/clstop -gr -s -y
  else
    exit 0
  fi
fi

exit $?