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
18 # Default-Stop: 0 1 2 6
19 # Short-Description: RADIUS-Server
20 # Description: Remote Authentication Dialin User Server
23 RADIUSD_BIN=/usr/sbin/radiusd
24 test -x $RADIUSD_BIN || { echo "$RADIUSD_BIN not installed"; \
25 if [ "$1" = "stop" ]; then exit 0;
33 echo -n "Starting RADIUS daemon "
34 startproc $RADIUSD_BIN >/dev/null
38 echo -n "Shutting down RADIUS daemon "
39 killproc -TERM $RADIUSD_BIN
42 try-restart|condrestart)
43 ## If first returns OK call the second, if first or
44 ## second command fails, set echo return value.
45 if test "$1" = "condrestart"; then
46 echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
52 rc_reset # Not running is not a failure.
57 ## Stop the service and regardless of whether it was
58 ## running or not, start it again.
64 ## Signal the daemon to reload its config. Most daemons
65 ## do this on signal 1 (SIGHUP).
66 ## If it does not support it, restart.
68 echo -n "Reload RADIUS daemon "
69 killproc -HUP $RADIUSD_BIN
73 ## Like force-reload, but if daemon does not support
74 ## signalling, do nothing (!)
76 echo -n "Reload RADIUS daemon "
77 killproc -HUP $RADIUSD_BIN
81 echo -n "Checking for service radiusd "
82 checkproc $RADIUSD_BIN
86 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"