Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2000 03:57:09 +0200
From:      Giorgos Keramidas <charon@hades.hell.gr>
To:        Scott Gregory <bsdbox@citizen.infi.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Detecting loss of Network Connection
Message-ID:  <20000129035709.A18572@hades.hell.gr>
In-Reply-To: <389103E4.78D1E910@citizen.infi.net>; from bsdbox@citizen.infi.net on Thu, Jan 27, 2000 at 09:50:12PM -0500
References:  <389103E4.78D1E910@citizen.infi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 27, 2000 at 09:50:12PM -0500, Scott Gregory wrote:
> To All,
> 
> Are there any tools or utilities that I can use to detect when a network
> connection has been lost?

Do you mean like when an interface (tun? or ppp?) goes down?  Since I'm
not using user ppp anymore, I wrote a simple shell script that I call
from my /etc/crontab to do this kind of stuff.  The heart of it contains:

	ifconfig -au | grep ppp0 >/dev/null || {
	    # the interface just went that way
	    pppd call ISP
	}

> Has anyone already created a tool that will do this?  This solution
> would have to be light on system resources since it would need to run
> every couple seconds (at a maximum).  

Nah, running it so many times will probably make it a cpu hog.  Try to
fix the problem even deeper, where it's root may be hidden.

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
"Don't let your schooling interfere with your education." [Mark Twain]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000129035709.A18572>