#! /bin/sh


tnw=/home/isti/TriNetWatch1.0

# NOTE: you must be rtem to start this script AND
# this will not ensure the csagents will get respawned
# if the NSI host (and thus event channels) dies.
# Use the /etc/inittab to start csagent for respawning.

me=`/usr/ucb/whoami`

if [ $me != "rtem" ] ; then
	echo "You must be rtem to start the csagents"
	exit 1
fi
echo "Starting 5 cs agents in background"
$tnw/bin/csagent -ORBconfig orb.config collection.ini-first50 &
sleep 10
$tnw/bin/csagent -ORBconfig orb.config collection.ini-second50 &
sleep 10
$tnw/bin/csagent -ORBconfig orb.config collection.ini-LLS-PAS- &
sleep 10
$tnw/bin/csagent -ORBconfig orb.config collection.ini-PASA-SLA &
sleep 10
$tnw/bin/csagent -ORBconfig orb.config collection.ini-SLC-YUH &
echo "Done."
