packages/net/freeradius/files/radiusd.init

19 lines
329 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
DEFAULT=/etc/default/radiusd
LOG_D=/var/log/radius
RUN_D=/var/run
PID_F=$RUN_D/radiusd.pid
start() {
[ -f $DEFAULT ] && . $DEFAULT
[ -d $LOG_D ] || mkdir -p $LOG_D
[ -d $RUN_D ] || mkdir -p $RUN_D
radiusd $OPTIONS
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}