#! /usr/bin/ksh
#
#pragma	ident	"@(#)rac_cvm_lib.ksh 1.3	03/01/10 SMI"
#
# Copyright 2002-2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
############################################################
#
# SUNW.rac_cvm Resource Type library
#
############################################################

initialize()
{
	SYSLOG_TAG="SC[SUNW.rac_cvm.${MYNAME:-}]"
	return 0

}

############################################################
#
# sync_file
# 
#   Synchronize cvm.conf configuration file with resource
#   properties.
#
############################################################

sync_file()
{

	# Synchronize CVM configuration file

	template=/usr/cluster/lib/ucmm/rt/rac_cvm/etc/cvm.conf.template
	conf_file=/opt/SUNWcvm/etc/cvm.conf
	sync_conf_file "${MY_RS}" ${template} ${conf_file}

	if [ $? -eq 0 ]; then
		ucmmd_sighup
	fi
}

