Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc,comp.protocols.tcp-ip.domains Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.com!news.internetMCI.com!newsfeed.internetmci.com!news.kei.com!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!inka.de!news.ka.inka.de!not-for-mail From: olaf@tapac.inka.de (Olaf Titz) Subject: Oh those funny hacks (Re: named running out of memory) Date: 14 Nov 1995 11:24:08 GMT References: <487p7f$7ia@ionews.io.org> <488pc7$2qq@hustle.rahul.net> NNTP-Posting-Host: tapac.inka.de Message-ID: <di16c8.5z2@inka.de> Lines: 21 Organization: INKA e.V., Karlsruhe Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:1444 comp.protocols.tcp-ip.domains:8331 Rahul Dhesi <dhesi@rahul.net> wrote: > 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. Of course not. How about this one? #!/bin/sh while true; do sleep 86400 kill -0 `cat /var/run/crond.pid` 2>/dev/null || /usr/sbin/crond done Another two processes wasted because some other one is broken. Sigh. :-) olaf -- ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____ __ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius> __/<_ >> Just as long as the wheels keep on turning round _)>(_)______________ I will live for the groove 'til the sun goes down << ____