Subject: Re: idle timeouts from isp
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Rick Kelly <rmk@toad.rmkhome.com>
List: port-i386
Date: 11/03/2001 18:53:13
Jukka Marin said:

>On Sat, Nov 03, 2001 at 02:42:19PM -0500, gabriel rosenkoetter wrote:
>> On Sat, Nov 03, 2001 at 09:41:12PM +0200, Jukka Marin wrote:
>> > ping also has option -i for interval in seconds.  No need for cron..
>> 
>> There is if we're talking about a headless firewall machine that Jon
>> doesn't want to stay logged into all the time.
>
>You can run ping from /etc/rc.local or some such and never need to log on.

I just dredged up a little c program that was posted to one of the mailing
lists or the newsgroup by thomasl@mit.edu back in 1995.

At that time I had 24x7 dedicated dialup access. This little daemon would
ping the default route and if the ping didn't work it would kill the pppd
daemon if it was still running. I just compiled it and named it ppp-up.

I also had a cron job that ran every 2 minutes. If it didn't see that pppd
was running, it would restart it. I had the script keep a log of how often
it restarted the daemon.

I could probably also dredge up the cron script, but I will have to boot
my 486/33 NetBSD 1.0A system which is sitting in the corner at this moment.

The ping daemon is at:

ftp.rmkhome.com/pub/rmk/ppp-monitor.c

-- 
Rick Kelly  rmk@rmkhome.com  www.rmkhome.com