2 # Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.
3 # 2002, 2003 SuSE Linux AG, Nuernberg, Germany.
5 # Author: Wolfgang Rosenauer, 2000-2003
9 # and symbolic its link
15 # Required-Start: $network $syslog $remotefs
16 # Should-Start: $time ypbind smtp
17 # Required-Stop: $syslog $remote_fs
18 # Should-Stop: ypbind smtp
20 # Default-Stop: 0 1 2 6
21 # Short-Description: RADIUS-Server
22 # Description: Remote Authentication Dialin User Server
26 RADIUSD_BIN=/usr/sbin/radiusd
27 test -x $RADIUSD_BIN || { echo "$RADIUSD_BIN not installed"; \
28 if [ "$1" = "stop" ]; then exit 0;
36 echo -n "Starting RADIUS daemon "
37 startproc $RADIUSD_BIN >/dev/null
41 echo -n "Shutting down RADIUS daemon "
42 killproc -TERM $RADIUSD_BIN
45 try-restart|condrestart)
46 ## If first returns OK call the second, if first or
47 ## second command fails, set echo return value.
48 if test "$1" = "condrestart"; then
49 echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
55 rc_reset # Not running is not a failure.
60 ## Stop the service and regardless of whether it was
61 ## running or not, start it again.
62 $0 configtest "$@" || { rc_failed $?; rc_exit; }
68 ## Signal the daemon to reload its config. Most daemons
69 ## do this on signal 1 (SIGHUP).
70 ## If it does not support it, restart.
71 $0 configtest "$@" || { rc_failed $?; rc_exit; }
72 echo -n "Reload RADIUS daemon "
73 killproc -HUP $RADIUSD_BIN
77 ## Like force-reload, but if daemon does not support
78 ## signalling, do nothing (!)
79 $0 configtest "$@" || { rc_failed $?; rc_exit; }
80 echo -n "Reload RADIUS daemon "
81 killproc -HUP $RADIUSD_BIN
85 echo -n "Checking for service radiusd "
86 checkproc $RADIUSD_BIN
89 configtest|testconfig)
90 echo -n "Checking config for radiusd "
99 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|configtest|debug}"