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

. `dirname $0`/lsr_config

# handle multiple ports ie 1414/1415/1416
PORTLIST=`echo "$PORT" \
        | tr '/' ',' \
        | sed -e "s;\([0-9]*\);\1/tcp;g"`

scrgadm -a -j $RS -g $RG -t SUNW.gds \
-x Start_command="/opt/SUNWscmqs/lsr/bin/start-lsr \
-R $RS -G $RG -Q $QMGR -P $PORT -B $BACKLOG -U $USERID " \
-x Stop_command="/opt/SUNWscmqs/lsr/bin/stop-lsr \
-R $RS -G $RG -Q $QMGR -P $PORT -B $BACKLOG -U $USERID " \
-x Probe_command="/opt/SUNWscmqs/lsr/bin/test-lsr \
-R $RS -G $RG -Q $QMGR -P $PORT -B $BACKLOG -U $USERID " \
-y Port_list=$PORTLIST -y Network_resources_used=$LH \
-x Stop_signal=9 -y Failover_mode=NONE -x Failover_enabled=FALSE \
-y Resource_dependencies=$QMGR_RS
