*BSD News Article 54168


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!news.kreonet.re.kr!news.dacom.co.kr!news.uoregon.edu!inquo!inquo.net!pete
From: pete@inquo.net (Pete Kruckenberg)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: killing pppd on modem hangup
Date: 9 Nov 1995 00:41:24 GMT
Organization: inQuo Internet (801) 530-7160
Lines: 23
Distribution: world
Message-ID: <47rink$sq8@xymox.dsw.com>
References: <30A11FF6.216E@cs.tcd.ie>
NNTP-Posting-Host: inquo.net
X-Newsreader: TIN [version 1.2 PL2]

Justin Farrell (jfarrell@cs.tcd.ie) wrote:
: I recently setup my freebsd box (2.0) to allow for dial-in ppp 
: access. The one problem I have is to kill off the pppd process 
: once the modem hangs up. At the moment pppd will continue to run
: and keep its connection to ttyd1 thus stopping any one else from 
: dialing in afterwards.

: my /etc/ppp/options file is as follows:

[...]
: -detach   

I've found that if you use the -detach parameter (at least with PPP
2.2.0c), it doesn't detect hangups. Allowing pppd to run as a forked
process (without the -detach) seems to work fine. Seems like a bug to me, 
but I haven't looked at the code yet.

It looks like you're just doing dial-in, so all you have to do is an 
"exec pppd" command, and when the connection dies, so will pppd.

Pete Kruckenberg
pete@inquo.net