(RADIATOR) Re: startup script for radiator on solaris sparc

Roland Rosenfeld rrosenfeld at netcologne.de
Tue Aug 19 07:02:09 CDT 2003


Hi Ayotunde!

On Tue, 19 Aug 2003, Ayotunde Itayemi wrote:

> Does anyone have a startup script I could use on a Solaris 8 SPARC box?
> Pls attach instructions for installation :-)

I use the attached one (in different variants for several radiator
instances).

Tschoeeee

        Roland
-------------- next part --------------
#!/bin/sh
#
# Radiator Start/Stop Skript
#
# (c) 2002-2003  Roland Rosenfeld <rrosenfeld at netcologne.de>
#
# $Id$

SERVICE="radiator LAN-DSL Cisco authentisierung"
RADIATOR=/usr/local/bin/radiusd
CONFIG=/usr/local/radiator/radius_clandsl_auth.cfg
PIDFILE=`grep -i '^PidFile' $CONFIG | sed 's/^PidFile[ 	]*//'`

case "$1" in
start)
   echo "starting $SERVICE ..."
   $RADIATOR -config_file $CONFIG >/dev/null &
   ;;
stop)
   echo "stopping $SERVICE ..."
   kill -15 `cat $PIDFILE`
   ;;
restart)
   echo "restarting $SERVICE ..."
   kill -1 `cat $PIDFILE`
   ;;
*)
   echo "`basename $0`: $SERVICE"
   echo "Usage: $0 { start | stop | restart }"
   exit 1
   ;;
esac
exit 0



More information about the radiator mailing list