*BSD News Article 64036


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!plaster.csdc.toshiba.com.au!inferno.mpx.com.au!goliath.apana.org.au!news.cs.su.oz.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.cps.udayton.edu!news.engr.udayton.edu!blackbird.afit.af.mil!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!news2.cais.com!cais.cais.com!mcgraw
From: mcgraw@cais.cais.com (McGraw-Hill CEC)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /etc/inittab equiv?
Date: 22 Mar 1996 15:51:55 GMT
Organization: Capital Area Internet Service info@cais.com 703-448-4470
Lines: 19
Message-ID: <4iuiar$hoh@news2.cais.com>
References: <4imj94$shc@daily-planet.execpc.com> <315032AC.15FB7483@freebsd.org> <DoL1t7.G5t@twwells.com>
NNTP-Posting-Host: cais.com
X-Newsreader: TIN [version 1.2 PL2]

: : Jeff Kane wrote:
: : > Where can a daemon be respawned from?  I don't see a inittab file.
: :

If you have to use the pppd daemon, you have to live with the fact that
it does not monitor and re-start itself.  If you MUST use the daemon, you 
might end up having to write a short script to check on it, and add the
script to the crontab file.  The script might, for example, ping your 
router, grep for an error code, and exit on no-error condition.  If you 
get no ping from your router (or ISP as the case may be), you have to 
grep the PID of pppd, kill it, and restart. (Don't loop the restart, or 
sooner or later you'll end up with multiple pppds, and god, the mess.)

Better to use the -auto mode of the user-interactive ppp.  If you think 
the docs are difficult (which they are for anyone who doesn't already 
understand how it works), you might accept my personal opinion that the 
net gain from user interactive ppp is greater than the net gain of 
writing some stupid script to monitor something that should have been 
designed to monitor itself in the first place.  imho.