#!/bin/sh # # Startup script for the Free RADIUS server daemon # # chkconfig: 2345 88 10 # description: Start/Stop the Free RADIUS server daemon # processname: radiusd # pidfile: /var/run/radiusd/radiusd.pid # config: /etc/raddb/radiusd.conf # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network [ -x /usr/sbin/radiusd ] || exit 0 # See how we were called. case "$1" in start) gprintf "Starting Free RADIUS server Daemon: " daemon radiusd -y RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/radiusd ;; stop) gprintf "Stopping Free RADIUS server Daemon: " killproc radiusd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/radiusd ;; status) status radiusd RETVAL=$? ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) gprintf "Usage: radiusd {start|stop|status|restart|reload}\n" exit 1 esac exit $RETVAL