#!/bin/sh
#
# Version:      0.0.0 /etc/init.d/rc.d/radiusd  27th-December-1999
#
# Author:       Horms <horms@vergenet.net>
#
# Adapted from: Tomasz Koczko, <kloczek@rudy.mif.pg.gda.pl>
#               Michele Marziani <marziani@fe.infn.it>
#
# radiusd:
# chkconfig: 2345 81 29
# description: Livingston (now Lucent) is the premiere developer of the \
# radius protocol and also makes this radius daemon which is a full \
# implementation of it. Its purpose is to talk with Livingston Portmaster \
# terminal servers (among others, as radius is now a popular protocol that \
# is implemented on all terminal servers). It handles user authentication \
# and accounting from terminals servers. This is the first major \
# BSD-licensed release in four years from Lucent. \
# Chris <chris@qdc.org>

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

# See how we were called.
case "$1" in
  start)
        echo -n "Starting radiusd: "
	daemon /usr/sbin/radiusd
	touch /var/lock/subsys/radiusd
        echo
	;;
  status)
        status radiusd
	;;
  restart|reload)
        $0 stop
	$0 start
        ;;
  stop)
        echo -n "Shutting down radiusd: "
	killproc radiusd
	rm -f /var/lock/subsys/radiusd
        echo
	;;
  *)
	echo "Usage: radiusd {start|stop|status|restart|reload}"
	exit 1
esac

exit 0
