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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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@
30 # If you have issues with OpenSSL, uncomment these next lines.
32 # Something similar may work for MySQL, and you may also
33 # have to LD_PRELOAD libz.so
35 #LD_LIBRARY_PATH=@OPENSSL_LIBS@
36 #LD_RUN_PATH=@OPENSSL_LIBS@:
37 #LD_PRELOAD=@OPENSSL_LIBS@libcrypto.so
38 export LD_LIBRARY_PATH LD_RUN_PATH LD_PRELOAD
40 RADIUSD=$sbindir/radiusd
45 # See 'man radiusd' for details on command-line options.
49 test -f $RADIUSD || exit 0
50 test -f $RADDBDIR/radiusd.conf || exit 0
54 echo -n "Starting $DESC:"
59 [ -z "$2" ] && echo -n "Stopping $DESC: "
60 [ -f $rundir/radiusd.pid ] && kill -TERM `cat $rundir/radiusd.pid`
61 [ -z "$2" ] && echo "radiusd."
64 echo "Reloading $DESC configuration files."
65 [ -f $rundir/radiusd.pid ] && kill -HUP `cat $rundir/radiusd.pid`
73 echo "Usage: /etc/init.d/$RADIUS {start|stop|reload|restart}"