3 # radiusd Start the radius daemon.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # Copyright (C) 2001-2002 The FreeRADIUS Project http://www.freeradius.org
22 exec_prefix=@exec_prefix@
24 localstatedir=@localstatedir@
26 rundir=${localstatedir}/run/radiusd
27 sysconfdir=@sysconfdir@
29 RADIUSD=$sbindir/radiusd
34 # See 'man radiusd' for details on command-line options.
38 test -f $RADIUSD || exit 0
39 test -f $RADDBDIR/radiusd.conf || exit 0
43 echo -n "Starting $DESC:"
48 [ -z "$2" ] && echo -n "Stopping $DESC: "
49 [ -f $rundir/radiusd.pid ] && kill -TERM `cat $rundir/radiusd.pid`
50 [ -z "$2" ] && echo "radiusd."
53 echo "Reloading $DESC configuration files."
54 [ -f $rundir/radiusd.pid ] && kill -HUP `cat $rundir/radiusd.pid`
62 echo "Usage: /etc/init.d/$RADIUS {start|stop|reload|restart}"