[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-radius] Arranque automáticode Radius
From: |
Sergey Poznyakoff |
Subject: |
Re: [Help-gnu-radius] Arranque automáticode Radius |
Date: |
Mon, 26 May 2003 12:29:28 +0300 |
> He cambiado la distro, tengo ahora un Debian Goody donde debo poner el
> arranque automáticode mi radius???
Si la distribución contiene el directorio /etc/init.d y el programa
/usr/sbin/update-rc.d, entonces:
1) copia el script `radiusd' del archivo adjunto al directorio
/etc/init.d. Fíjate que la línea 5 del script contiene la ruta
predefinida al programa radiusd. Si lo has installado en algún
otro directorio, tendras que editar esta línea.
2) cámbia las permisologías del script ejecutando `chmod +x radiusd'
3) ejecuta el comando:
update-rc.d radiusd defaults
Saludos,
Sergey
#! /bin/sh
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/radiusd
NAME=radiusd
DESC="GNU Radius daemon"
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
reload|force-reload)
echo "Reloading $DESC configuration files."
start-stop-daemon --stop --signal 1 --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0