#!/bin/ksh

#--- INIT ------------------------------
#needs $HOME
. $HOME/etc/ctrl.main.shi

[ -f $HOME/etc/setenv.sh ] && . $HOME/etc/setenv.sh

#--- FUNC ------------------------------
do_shell_()
{
  cat <<EndOfInlineData
REPOSITORYHANDLER_HOME=$HOME/component/repositoryhandler
EndOfInlineData

} #do_shell_()

do_status_()
{
  echo "OK"
  exit

} #do_status_()

do_start_()
{
} #do_start_()


do_stop_()
{
	ps auxwww | grep -i checko | grep -i verload | awk '{print $2}' |  
	while read num ; do
	   echo "gracefully killing checkoverload, pid: $num"
	   kill $num
	done
}


do_backup_()
{
} #do_backup_()
                                                                        
#--- MAIN ------------------------------

check_action_ $1
if [ 0 = $? ]; then
  do_$1_ $2

else
  echo "--- Component repositoryhandler [ctrl $$]: Bad command: $1" >&2
  exit 1

fi
