#!/bin/sh
#
-# chkconfig: - 88 10
-# description: Start/Stop the RADIUS server daemon
+# chkconfig: - 88 10
+# description: Start/Stop the RADIUS server daemon
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. /etc/rc.d/init.d/functions
RADIUSD=/usr/sbin/radiusd
-LOCKF=/var/lock/subsys/radiusd
+LOCKF=/var/lock/subsys/freeradius
CONFIG=/etc/raddb/radiusd.conf
[ -f "$RADIUSD" ] || exit 0
# Check if the service is already running?
if [ ! -f "$LOCKF" ]; then
msg_starting RADIUS
- daemon "$RADIUSD" -y
+ daemon "$RADIUSD"
RETVAL=$?
[ $RETVAL -eq 0 ] && touch "$LOCKF"
else
killproc "$RADIUSD" -HUP
RETVAL=$?
else
- msg_not_running RADIUS >&2
+ msg_not_running RADIUS
exit 7
fi
;;