3 # radiusd Start the radius daemon.
5 # This is a script suitable for the Redhat Linux distribution.
6 # Copy it to /etc/rc.d/init.d/radiusd.init and
7 # use tksysv or your favorite runlevel editor to start it
10 # chkconfig: 345 98 10
11 # description: Ativa/Desativa servidor Radius
15 # Source function library.
16 . /etc/rc.d/init.d/functions
18 RADIUSD=/usr/sbin/radiusd
19 WATCHER=/usr/sbin/radwatch
20 LOCKF=/var/lock/subsys/radiusd
22 test -f $RADIUSD || exit 0
23 test -f /etc/raddb/clients || exit 0
27 [ -f /var/log/radutmp ] || touch /var/log/radutmp
28 echo -n 'Starting RADIUSD server: '
31 daemon $WATCHER $RADIUSD -y
39 echo -n 'Stopping RADIUSD server: '
42 killproc $WATCHER 2> /dev/null
44 killproc $RADIUSD 2> /dev/null
54 echo "Usage: $0 {start|stop|reload}"