#!/bin/sh
#
# whois-gateway:		Whois Gateway daemon
#
#

# Source function library.
. /etc/rc.d/init.d/functions

start() 
{

        echo -n "Starting whois-gateway-d: "

	/usr/bin/whois-gateway-d > /dev/null &

        echo
}

stop() 
{
        echo -n "Shutting down whois-gateway-d: "

        /usr/bin/whois-gateway-d stop

	killall whois-gateway-d

        echo
}

[ -f /usr/bin/whois-gateway-d ] || echo /usr/bin/whois-gateway-d does not exists!!!

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart)
	stop
	start
	;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit 0
