From owner-freebsd-questions@FreeBSD.ORG Fri May 2 18:12:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1307C37B401 for ; Fri, 2 May 2003 18:12:04 -0700 (PDT) Received: from grover.logicsquad.net (ppp350.sa.padsl.internode.on.net [150.101.245.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 3A91943F85 for ; Fri, 2 May 2003 18:12:02 -0700 (PDT) (envelope-from paulh@logicsquad.net) Received: (qmail 93481 invoked by uid 1000); 3 May 2003 01:12:00 -0000 Date: Sat, 3 May 2003 10:42:00 +0930 From: "Paul A. Hoadley" To: Paul Hamilton Message-ID: <20030503011200.GA93080@grover.logicsquad.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: Freebsd-Questions Subject: Re: auto restarting a ppp connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 01:12:04 -0000 On Fri, May 02, 2003 at 09:44:33PM +0800, Paul Hamilton wrote: > I have tried to put the whole routine into a script, ie, find the > pid, kill it, wait, then restart the ppp connection. The idea, was > that I could link it with a ping tester, then when I miss 'x' number > of pings, restart the connection. This is what I used:- Here is a script Aaron Hill wrote that does precisely that: http://logicsquad.net/freebsd/pingmonitor-how-to.html Run it with cron as frequently as you like. Instructions for customising it are on that page. -- Paul. mailto:paulh@logicsquad.net mailto:phoadley@maths.adelaide.edu.au