#!/bin/sh

##
# Sigma Agent
##

. /etc/rc.common

[ -f /etc/sigma/agent.conf ] && . /etc/sigma/agent.conf


StartService ()
{
	ConsoleMessage "Starting Sigma Agent"
	sh $AVROOT/active/scripts/etc/init.d/sigma_agent start
}

StopService ()
{
	ConsoleMessage "Stopping Sigma Agent"
	sh $AVROOT/active/scripts/etc/init.d/sigma_agent stop
}

RestartService ()
{
	ConsoleMessage "Restarting Sigma Agent"
	sh $AVROOT/active/scripts/etc/init.d/sigma_agent restart
}

RunService "$1"
