Ticket #4930: radiusd.init

File radiusd.init, 338 bytes (added by jake1981 <oskari.rauta@…>, 9 years ago)

Overwrite old files/radiusd.init with this file

Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3START=50
4
5DEFAULT=/etc/default/radiusd
6LOG_D=/var/log
7RUN_D=/var/run
8PID_F=$RUN_D/radiusd.pid
9ACCT_D=/var/db/radacct
10
11start() {
12        [ -f $DEFAULT ] && . $DEFAULT
13        mkdir -p $LOG_D
14        mkdir -p $RUN_D
15        mkdir -p $ACCT_D
16        radiusd $OPTIONS
17}
18
19stop() {
20        [ -f $PID_F ] && kill $(cat $PID_F)
21}