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 postgresql mysql ldap samba krb5kdc
18 # Should-Stop: $time postgresql mysql ldap
20 # Default-Stop: 0 1 2 6
21 # Short-Description: RADIUS-Server
22 # Description: Remote Authentication Dialin User Server
25 RADIUSD_BIN=/usr/sbin/radiusd
26 test -x $RADIUSD_BIN || { echo "$RADIUSD_BIN not installed"; \
27 if [ "$1" = "stop" ]; then exit 0;
35 echo -n "Starting RADIUS daemon "
36 startproc $RADIUSD_BIN >/dev/null
40 echo -n "Shutting down RADIUS daemon "
41 killproc -TERM $RADIUSD_BIN
44 try-restart|condrestart)
45 ## If first returns OK call the second, if first or
46 ## second command fails, set echo return value.
47 if test "$1" = "condrestart"; then
48 echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
54 rc_reset # Not running is not a failure.
59 ## Stop the service and regardless of whether it was
60 ## running or not, start it again.
66 ## Signal the daemon to reload its config. Most daemons
67 ## do this on signal 1 (SIGHUP).
68 ## If it does not support it, restart.
70 echo -n "Reload RADIUS daemon "
71 killproc -HUP $RADIUSD_BIN
75 ## Like force-reload, but if daemon does not support
76 ## signalling, do nothing (!)
78 echo -n "Reload RADIUS daemon "
79 killproc -HUP $RADIUSD_BIN
83 echo -n "Checking for service radiusd "
84 checkproc $RADIUSD_BIN
88 echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"