Am Sonntag, 14. Dezember 2003 04:02 schrieb Raymond Page:
> Perhaps someone could inform me of the proper manner of restarting
> pppd when it does die.  As it is, I do not know how to manually
> restart a connection that has died.  I've tried '/usr/sbin/pppd
> call dsl-provider eth0' and that will not reestablish my
> connection.  Restarting the inetd script doesn't seem to help
> either, so perhaps I'm overlooking the proper step for starting
> and restarting the pppd in the first place?

ifup ppp0

kp

>
> On Sat Dec 13 08:21:36 EST 2003, Henning Jebsen <[EMAIL PROTECTED]>
>
> wrote:
> > Hi Raymond,
> >
> >> I'm curious how to get pppd to auto redial when my connection
> >> dies.
> >
> > I got another approach than using inittab/respawn.
> >
> > You simple could do a tail -f onto /var/log/messages and then
> > search for a specific string. The search is done by
> > awk in my case.
> >
> > I use that method for all kinds of messages, I want to be
> > tracked.
> >
> > My script goes like this:
> > tail --retry -f /var/log/messages | awk '{ do anything }'
> >
> > If awk finds that string it will restart pppd, or whatever
> > you need.
> >
> > This works -of.course- only if pppd writes someting into
> > /var/log/messages if the connection state changes. I think,
> > pppd does write something into the logfile. Think of increasing
> > the debug level ;-).
> >
> > This way is fast,flexible and doesn't consume much ressources,
> > I like it ;-)
> >
> > bye
> >
> >
> >
> >
> > -------------------------------------------------------
> > 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
>
> --
> 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



-------------------------------------------------------
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