*BSD News Article 54933


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!daily-planet.execpc.com!news.moneng.mei.com!news.ecn.bgu.edu!vixen.cso.uiuc.edu!uwm.edu!homer.alpha.net!solaris.cc.vt.edu!news.mathworks.com!news.kei.com!ub!ns1.potsdam.edu!news.potsdam.edu!nelson
From: nelson@crynwr.crynwr.com (Russell Nelson)
Newsgroups: comp.unix.bsd.bsdi.misc,comp.protocols.tcp-ip.domains
Subject: Re: named running out of memory and aborting?
Date: 15 Nov 1995 15:20:57 GMT
Organization: Crynwr Software
Lines: 23
Distribution: inet
Message-ID: <NELSON.95Nov15102057@crynwr.crynwr.com>
References: <487p7f$7ia@ionews.io.org> <488pc7$2qq@hustle.rahul.net>
NNTP-Posting-Host: 192.203.178.14
In-reply-to: Rahul Dhesi's message of 14 Nov 1995 00:54:31 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:1476 comp.protocols.tcp-ip.domains:8383

In article <488pc7$2qq@hustle.rahul.net> Rahul Dhesi <dhesi@rahul.net> writes:

   BTW, I have a similar cron job that restarts cron if it dies.  How this
   is done is proprietary information, because many people will tell you
   it's impossible.  I will let you guess whether I'm joking or not.

Impossible?  No, you just do a watchdog program.  Every ten minutes
you run the following program:

#! /bin/sh
kill `cat /etc/watchdog.pid`
echo $$ >/etc/watchdog.pid
sleep 610
killall -9 crond
/usr/sbin/crond >/dev/null 2>&1

If this is rocket science, then rocket science is getting easier --lwall.

--
-russ <nelson@crynwr.com>    http://www.crynwr.com/~nelson
Crynwr Software   | Crynwr Software sells packet driver support | PGP ok
11 Grant St.      | +1 315 268 1925 (9201 FAX)  | 'tis better not to choose:
Potsdam, NY 13676 |  Abortion is murder; forced childbirth is slavery.