#!/bin/sh
#############################################################################
# Copyright 2005 Sun Microsystems Inc.  All rights reserved.
# Use is subject to license terms.
#
# Name: stop
# Description: stop script for SUNWccccfg pkg.
#
# pragma ident  "$Id: stop.sh,v 1.1.2.1.8.1 2005/07/21 20:38:52 rc5273 Exp $"
##############################################################################

##############################################################################
#  Function of the stop script
#  1.  Use the init.d control script to stop the CCR update agent process.
##############################################################################

#
# control logging method
#
log=echo
#log="logger -pdaemon.err"

exec_script=cc-ccragent

if [ ! -f /etc/init.d/$exec_script ] ; then
    $log ERROR : ccragent is not properly enabled.  Cannot find /etc/init.d/$exec_script
    exit 1
else
    /etc/init.d/$exec_script stop
fi
