#!/bin/sh
#* ----------------------------------------------------------------------
#*               Proprietary and Confidential Information
#*
#* This material contains, and is part of a computer software program
#* which is, proprietary and confidential information owned by COMPUTER
#* ASSOCIATES INTERNATIONAL, INC.  The program, including this material,
#* may not be duplicated, disclosed or reproduced in whole or in part for
#* any purpose without the express written authorization of COMPUTER
#* ASSOCIATES. All authorized reproductions must be marked with this
#* legend.
#*
#*                          Copyright (c) 1992-2005
#*             Computer Associates International, Incorporated
#*                          All rights reserved
#*
#* ----------------------------------------------------------------------
#*  SCCS Module Control Stamp
#* ----------------------------------------------------------------------
#
#* "@(#)unicntrl	1.17  06/09/05 09:45:00"
#* "Copyright (C) 1992-2005 Computer Associates International, Inc.  All rights reserved."
#
#

BASH_ENV=""
export BASH_ENV

case "$1" in
   start)		univerb="unistart" 	;;
   stop|shutdown)	univerb="unishutdown"	;;
   restart|cycle)	univerb="unicycle"	;;
   *)			univerb="unisrvcntr $1"	;;
esac

if [ $# -lt 1 ]; then
   complist=""
else
   shift 1
   complist="$*"
fi

[ -f /etc/profile.CA ] && . /etc/profile.CA all

if [ "$CASHCOMP" = "" ];then
   echo "CASHCOMP is not set in $0."
   echo "Exiting."
   exit 4
fi

CA_WRAPPER_NAME=unicntrl; export CA_WRAPPER_NAME
$CASHCOMP/csutils/bin/$univerb $complist
exit $?
