diff options
Diffstat (limited to 'testing/freeradius/freeradius.initd')
-rw-r--r-- | testing/freeradius/freeradius.initd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/freeradius/freeradius.initd b/testing/freeradius/freeradius.initd index 3a00e2a39f..2386a9fcc4 100644 --- a/testing/freeradius/freeradius.initd +++ b/testing/freeradius/freeradius.initd @@ -25,6 +25,11 @@ checkconfig() { return 1 fi + if [ "`/usr/sbin/radiusd -C >/dev/null 2>&1; echo $?`" != "0" ] ; then + eerror "Config not ok! (try /usr/sbin/radiusd -C )" + return 1 + fi + RADIUSD_USER=`grep '^ *user *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3` RADIUSD_GROUP=`grep '^ *group *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3` if [ -n "${RADIUSD_USER}" ] && ! getent passwd ${RADIUSD_USER} > /dev/null ; then |