*BSD News Article 89061


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!news.maxwell.syr.edu!insync!Gamma.RU!srcc!sovam!cam-news-feed1.bbnplanet.com!news.delphi.com!news-feed.iguide.com!news.ziplink.net!rtfm.ziplink.net!mi
From: mi@rtfm.ziplink.net (Mikhail Teterin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ppp auto redial after lost connection?
Date: 14 Feb 1997 05:19:51 GMT
Organization: Aldan at Newton Upper Falls
Lines: 25
Message-ID: <5e0sln$hnj$1@news.ziplink.net>
References: <01bc19cb$48ea4760$05e955c2@iaipc0.iai.rssi.ru>
    <330379AD.41C6@urc.tue.nl> <5e0hte$rg6@news.fred.net>
Reply-To: mi@ALDAN.ziplink.net..remove-after-`net'
NNTP-Posting-Host: 199.232.255.52
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35402

Honorable mcurry@fred.net ( )
      wrote on 14 Feb (in article <5e0hte$rg6@news.fred.net>):

=other things that you personally prefer.  You grep the ping return for
=some unique string, and conditionally restart pppd (after killing the
=previous pppd process, which has to be identified by grepping the output
=of the ps -x command).

pppd rights down it's process id in /var/run/pppN.pid (N being the
number of the connection -- with one modem only, you'll have N=0).
So, to kill it, you need:
	kill `cat /var/run/ppp0.pid`
Actually, most of the system daemons and other apps identify
themselves in that fashion -- you do not need to use ps in most
cases.

=Alternatively, and much to be preferred, is to use ijppp with the -ddial
=option.  It will redial automatically on loss of carrier.

Someone has to put ijppp's loss-of-carrier detection into pppd, if it is
more reliable then current pppd's...

	-mi
-- 
	"Windows for dummies"