#!/sbin/sh
#
#        ident  "@(#)svc_scsymon_srv 1.3     06/03/27 SMI"
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

# Start process required for scsymon_srv

. /lib/svc/share/smf_include.sh

# disable SunMC by default;
# SUNWescom -- package with common SunMC components

case "$1" in
'start')
	# test whether we are a cluster and exit if not a cluster
	/usr/sbin/clinfo > /dev/null 2>&1
	if [ $? -ne 0 ] ; then
		exit $SMF_EXIT_ERR_CONFIG
	fi

	/usr/bin/pkginfo -qi SUNWescom
	if [ $? -ne 0 ] ; then
		exit $SMF_EXIT_ERR_CONFIG
	fi

	/usr/cluster/lib/scsymon/scsymon_srv
	;;
esac
exit 
$SMF_EXIT_OK
