freeradius: New package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2016-07-12 14:51:18 +01:00
parent ccb35c191f
commit 71f578bbfc
11 changed files with 1183 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/freeradius
#
# Description : Initscript for the FreeRADIUS Server
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
# Create necessary directories
mkdir -p /var/run/radiusd
boot_mesg "Starting FreeRADIUS server..."
loadproc /usr/sbin/radiusd -d /etc/raddb
;;
stop)
boot_mesg "Stopping FreeRADIUS server..."
killproc /usr/sbin/radiusd
;;
reload)
boot_mesg "Reloading FreeRADIUS server..."
reloadproc /usr/sbin/radiusd
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/radiusd
;;
*)
echo "Usage: ${0} {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/freeradius