#
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

. `dirname $0`/cmg_config


scrgadm -a -j $RS -g $RG -t SUNW.gds \
-x Start_command="/opt/SUNWscebs/cmg/bin/start_cmg \
-R $RS -G $RG -C $CON_COMNTOP -U $CON_APPSUSER -P $APPS_PASSWD \
-V $VERSION \
-S $APP_SID -O $ORACLE_HOME -L $CON_LIMIT -M $MODE" \
-x Stop_command="/opt/SUNWscebs/cmg/bin/stop_cmg \
-R $RS -G $RG -C $CON_COMNTOP -U $CON_APPSUSER -P $APPS_PASSWD \
-V $VERSION \
-S $APP_SID -O $ORACLE_HOME -L $CON_LIMIT -M $MODE" \
-x Probe_command="/opt/SUNWscebs/cmg/bin/probe_cmg \
-R $RS -G $RG -C $CON_COMNTOP -U $CON_APPSUSER -P $APPS_PASSWD \
-V $VERSION \
-S $APP_SID -O $ORACLE_HOME -L $CON_LIMIT -M $MODE" \
-y Port_list=23/tcp -y Network_resources_used=$LH \
-x Stop_signal=9 \
-y Resource_dependencies=$HAS_RS,$LSR_RS
