On Thursday 11 December 2003 12:56 pm, Alex Rhomberg wrote:
> > At 09:02 11.12.2003 +0100, you wrote:
> > > > I'm curious how to get pppd to auto redial when my connection
> > > > dies.
> > >
> > ><snipalot>
> > >
> > >Just respawning the pppd is not sufficient, I had times when
> > > pppd ran and the ppp0 interface was visible but did not have an
> > > IP address.
> >
> > IMHO the pppd
> >
> > >should be changed that so it never quits, doesn't run twice on
> > > the same interface and retries constantly.
> >
> > Any chance running pppd from init, letting it respawn if it goes
> > away?
>
> Like in the part you quoted, pppd sometimes runs but doesn't get it
> up (the connection), so init would not see a reason to respawn. If
> you decide to restart pppd manually, you have to make sure to kill
> it first (whence the kill in the script).
>
> If you used respawn you still needed a watchdog that kills useless
> pppd processes so respawn can do its job. And could you use pon?
>
> I'm staying with my script for the time being :-)
>
> Regards
> Alex
>

In my experience, the pppd dies and is no longer running when I am 
disconnected.  I believe in Bering uClibc 1.X (don't recall 
subversion) that it would sometimes just lose the ip addr but ppp0 
would stay listed in ip addr show.  However, with 2.0 final, I've 
only experienced the pppd dying.  I've not done any thorough testing, 
nor am I really sure how to, other than give my isp time to terminate 
the connection on their end.

So it would seem in my case that I don't need to worry about killing 
off pppd because it dies when the connection is closed.  And I 
believe that using init to respawn pppd would be the best way of 
setting it up.

Do you guys see any flaws to this?  Perhaps Alex could elaborate on 
the situations that lead to ppp0 losing its ip address?

Thanks for the feedback guys,

Raymond Page



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to