3 # radiusd Start/Stop the FreeRADIUS daemon
6 # description: Extensible, configurable, high performance RADIUS server.
10 # Required-Start: $network
14 # Should-Start: $time $syslog mysql ldap postgresql samba krb5-kdc
16 # Short-Description: FreeRADIUS server
17 # Description: Extensible, configurable, high performance RADIUS server.
20 # Source function library.
21 . /etc/rc.d/init.d/functions
25 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
27 exec=${exec:=/usr/sbin/$prog}
28 config_dir=${config_dir:=/etc/raddb}
29 config=${config:=$config_dir/radiusd.conf}
30 pidfile=${pidfile:=/var/run/$prog/$prog.pid}
31 lockfile=${lockfile:=/var/lock/subsys/radiusd}
34 [ -x $exec ] || exit 5
35 [ -f $config ] || exit 6
36 echo -n $"Starting $prog: "
37 daemon --pidfile $pidfile $exec -d $config_dir
40 [ $retval -eq 0 ] && touch $lockfile
45 echo -n $"Stopping $prog: "
46 killproc -p $pidfile $prog
49 [ $retval -eq 0 ] && rm -f $lockfile
59 # radiusd may not be capable of a 100% configuration reload depending
60 # on which loadable modules are in use, if sending the server a
61 # HUP is not sufficient then use restart here instead. However, we
62 # prefer by default to use HUP since it's what is usually desired.
66 kill -HUP `pidofproc -p $pidfile $prog`
74 # run checks to determine if the service is running or use generic status
75 status -p $pidfile $prog
79 rh_status >/dev/null 2>&1
105 condrestart|try-restart)
106 rh_status_q || exit 0
110 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"