[LineControl-development] LineSrv pppd Error handling
Brought to you by:
sfuchs
|
From: Timothy W. <we...@ti...> - 2005-03-09 01:20:26
|
I'm posting this here because there are few subscribers to the users lists.
Sometimes when I connect with linesrv the ppp connection fails to
initiate properly. Unfortunately linesrv isn't detecting the error.
I am using pon and poff for the scripts so I'm wondering how it actually
detects a failed dial attempt.
As far as I can see /var/run/ppp-Provider.pid remains although the pppd
process has finished. Both pppd and chat have exited.
Looking through the src I can see that for a ppp connection it checks to
see when ppp0 is up. Wouldn't it make more sense to also check to see if
pppd is running?
i.e. if (line_status(line) = CST_DIALING) {
/* Check if line is up yet */
/* Check if pppd is still active, if pppd has died then
return \
status to CST_DOWN and send client an error */
}
Any other suggestions on how this can be achieved? I can change the
con_type to file and have a ip-up.d/connected script that creates a file
but I'm not 100% sure of con_type file
I'm going to try con_timeout with 120 seconds to see how that goes,
otherwise I'll try con_type file.
Thanks
Tim
--
Tim White - Use the Fox, Luke!
PGP/GPG id: 602E944D, Pub Key Serv: subkeys.pgp.net
Fingerprint: 04C2 9682 B7B2 3006 009D A9F3 067E EDCD 602E 944D
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!
--
Linux linmedia 2.6.10linmedia #4 Mon Feb 21 21:19:38 WST 2005 i686 GNU/Linux
|