|
|
|
|
@ -6,6 +6,21 @@
|
|
|
|
|
%config |
|
|
|
|
radius_enable="$openpkg_rc_def" |
|
|
|
|
|
|
|
|
|
%common |
|
|
|
|
radius_pidfile="@l_prefix@/var/radius/run/radius.pid" |
|
|
|
|
radius_signal () { |
|
|
|
|
[ -f $radius_pidfile ] && kill -$1 `cat $radius_pidfile` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%status -u @l_susr@ -o |
|
|
|
|
radius_usable="unknown" |
|
|
|
|
radius_active="no" |
|
|
|
|
rcService radius enable yes && \ |
|
|
|
|
radius_signal 0 && radius_active="yes" |
|
|
|
|
echo "radius_enable=\"$radius_enable\"" |
|
|
|
|
echo "radius_usable=\"$radius_usable\"" |
|
|
|
|
echo "radius_active=\"$radius_active\"" |
|
|
|
|
|
|
|
|
|
%start -u @l_susr@ |
|
|
|
|
rcService radius enable yes || exit 0 |
|
|
|
|
@l_prefix@/sbin/radctl start |
|
|
|
|
@ -14,3 +29,7 @@
|
|
|
|
|
rcService radius enable yes || exit 0 |
|
|
|
|
@l_prefix@/sbin/radctl stop |
|
|
|
|
|
|
|
|
|
%reload -u @l_susr@ |
|
|
|
|
rcService radius enable yes || exit 0 |
|
|
|
|
@l_prefix@/sbin/radctl reload |
|
|
|
|
|
|
|
|
|
|