#! /bin/sh

. "`dirname $0`/rcdefs"

PATH=${PATH_SYS}

case "$1" in
  start)
    Print -n "Starting Eclipse client... "
    eclipse_client > /dev/null 2>&1 &
    Print "done."
    ;;
  stop)
    Print -n "Stopping Eclipse client... "
    pid=`ps ax | grep eclipse_client | grep -v grep | awk '{print \$1}'`
    kill $pid
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
