[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about demand dialing with diald
Well this certainly clears up a lot of confusion on my part regarding the
whole topic of demand dialing. The ppp daemon is going down on disconnect,
though I am not sure why. I definitely appreciate your help on this.
Here is what I get in /var/log/messages:
Oct 27 08:22:34 penguin pppd[3383]: Terminating connection due to lack of
activity.
Oct 27 08:22:34 penguin pppd[3383]: Connection terminated.
Oct 27 08:22:34 penguin pppd[3383]: Connect time 14.9 minutes.
Oct 27 08:22:34 penguin pppd[3383]: Sent 34776 bytes, received 249021 bytes.
Oct 27 08:22:34 penguin pppd[3383]: Terminating on signal 2.
Oct 27 08:22:34 penguin pppd[3383]: disconnect script failed
Oct 27 08:22:35 penguin pppd[3383]: Exit.
Oct 27 08:40:00 penguin kernel: PPP: ppp line discipline successfully
unregistered
Here is /etc/ppp/peers/ameritech:
connect /etc/ppp/ppp-connect
disconnect /etc/ppp/ppp-off
/dev/ttyS1
115200
modem
crtscts
lock
defaultroute
mtu 552
mru 552
netmask 255.255.255.0
asyncmap 0
idle 300
user mslack
demand
192.168.0.1:192.168.0.2
ipcp-accept-remote
ipcp-accept-local
holdoff 10
and just in case, here is /etc/ppp/ppp-off:
#!/bin/sh
######################################################################
# Determine the device to be terminated.
if [ "$1" = "" ]; then
DEVICE=ppp0
else
DEVICE=$1
fi
######################################################################
# If the ppp0 pid file is present then the program is running. Stop it.
if [ -r /var/run/$DEVICE.pid ]; then
kill -INT `cat /var/run/$DEVICE.pid`
# If the kill did not work then there is no process running for this
# pid. It may also mean that the lock file will be left. You may wish
# to delete the lock file at the same time.
if [ ! "$?" = "0" ]; then
rm -f /var/run/$DEVICE.pid
echo "ERROR: Removed stale pid file"
exit 1
fi
# Success. Let pppd clean up its own junk.
echo "PPP link to $DEVICE terminated."
exit 0
fi
# The ppp process is not running for ppp0
echo "ERROR: PPP link is not active on $DEVICE"
exit 1
adam@morrison-ind.com said:
> >I have configured demand dialing running diald, and it works, sort
> of, but I >am having a problem. The script /etc/rc.d/init.d/diald
> runs when I boot, and >demand dialing works until idle timeout, when
> it disconnects as expected.
> First, according to the script below you are not running "diald" but
> kernel~ demand dialing. This is good, "diald" is an old software
> package for doing~ demand dial before the kernel supported it, and is
> in every way obselete.
> >However, the next time I start a tcp communication, there is no
> response. If >I run "/etc/rc.d/init.d/diald start" it works fine
> again, until it times out, >and then the same problem again. Here is
> my script: >Any suggestions?
> The script looks fine, almost identical to mine. I'd be more
> interested to see the /etc/ppp/peers/ameritech file. Are their any
> messages that occur in /var/log/messages when the pppd dies, I assume
> that pppd shows up as no longer running after the first disconnect?