Jeff Hunter wrote:
> Since I didn't receive an answer to my original question, it would
> seem no one is using diald under RH6.x or Caldera OL2.3. If some one is
> using diald with these distros, did you write the init scripts yourself
> or is my OL rpm missing something. I have no /etc/rc.d/init.d/diald
> script, although I did get an /etc/rc.d/rc5.d/S70diald which links to
> the non-existent ../init.d/diald, in my OL2.3 distro.
>
I wrote my own, and it's starts diald daemons for both my work RAS and my
home ISP, but it's easy enough to customize.
--
--------------------------------------------------------
Bob Chiodini [EMAIL PROTECTED]
--------------------------------------------------------
#!/bin/sh
#
# chkconfig: 345 91 35
# description: Starts and stops the diald daemons \
# used to provide dial on demand services.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# See how we were called.
case "$1" in
start)
# Turn on ip_dynaddr
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# Start daemons.
if [ -f /etc/diald/diald.conf ]
then
echo -n "Starting diald for gnc: "
diald -f /etc/diald/diald.conf
echo
fi
if [ -f /etc/diald/kuda.conf ]
then
echo -n "Starting diald for kuda: "
diald -f /etc/diald/kuda.conf
echo
fi
;;
stop)
# Stop daemons.
if [ -f /etc/diald/diald.conf ] || [ -f /etc/diald/kuda.conf ]
then
echo -n "Stopping diald: "
killall diald
echo
fi
;;
status)
status diald
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: diald {start|stop|status|restart}"
exit 1
esac