#!/bin/sh

###########################################################################
# Copyright (C)2004-2005, Sun Microsystems Inc. All rights reserved.
# Use is subject to license terms.
#
# Name: cc-invagent
# Description: /etc/init.d entry for SUNWccinv pkg.

# pragma ident	"$Id: cc-invagent,v 1.1.2.1 2005/04/29 16:23:01 jr150870 Exp $"
###########################################################################

###########################################################################
#  Function of cc-invagent
#    If $1 is 'start', run the real cc-invagent
#    Otherwise, do nothing.
#
# cc-invagent gathers up and uploads the inventory data and then exits.
# This script does not try to track cc-invagent so it can stop one
# which is running. Not a likely problem. Hard to do well with short
# running programs like cc-invagent.
###########################################################################

case "$1" in
 'start')
	#echo "Starting cc-invagent"
    # Errors go to syslog.
    nice -19 /usr/lib/cc-cfw/platform/invagent/bin/cc-invagent > /dev/null 2>&1 &
    ;;

 'stop')
    # Does nothing
    ;;
    
 *)
    echo "Usage : `basename $0` { start | stop } "
    ;;
esac

exit 0

