# the server.
#
# If you want to watch and re-start the server, we recommend
-# reading the file ../doc/supervise-radiusd.txt
+# reading the file doc/supervise-radiusd.txt
#
#
# Version: $Id$
do
# Use `wait', otherwise the trap doesn't work.
$RADIUSD -f $* &
+ echo "$!" > $rundir/radiusd.pid
wait
exec >> $logdir/radwatch.log 2>&1
echo "`date`: Radius died, restarting.."