From owner-freebsd-questions Thu Aug 5 12: 2:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.surnet.ru (mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (Postfix) with ESMTP id A675815511 for ; Thu, 5 Aug 1999 12:02:23 -0700 (PDT) (envelope-from ilia@cgilh.chel.su) Received: (from uucgilh@localhost) by mobil.surnet.ru (8.9.1a/8.9.1) with UUCP id AAA14416; Fri, 6 Aug 1999 00:55:27 +0600 (UDT) Received: (from uucp@localhost) by cgilh.chel.su (8.8.7/8.8.7) with UUCP id XAA01079; Thu, 5 Aug 1999 23:55:39 +0600 Received: from localhost (ilia@localhost) by localhost.cgu.chel.su (8.9.2/8.9.2) with ESMTP id XAA03253; Thu, 5 Aug 1999 23:41:33 +0600 (ESS) (envelope-from ilia@cgilh.chel.su) X-Authentication-Warning: localhost.cgu.chel.su: ilia owned process doing -bs Date: Thu, 5 Aug 1999 23:41:32 +0600 (ESS) From: Ilia Chipitsine X-Sender: ilia@localhost.cgu.chel.su To: Ho Seng Yip Cc: questions@FreeBSD.ORG Subject: Re: Respawn In-Reply-To: <004001bedf5d$bc99c820$7da115a5@oasis> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I remember using it with crack-5 ... 1. add the following line to your crontab (by running 'crontab -e') 59 * * * * /home//bin/respawn it will execute your script every hour. 2. script "respawn" (must be executable ! use 'chmod +x respawn') #!/bin/sh /bin/ps aux > /tmp/respawn.tmp /usr/bin/grep /tmp/respawn.tmp > /dev/null 2>&1 if [ $? != 0 ]; then restart-our-server exit 0 fi Regards, (Наилучшие пожелания) Ilia Chipitsine (Илья Шипицин) On Fri, 6 Aug 1999, Ho Seng Yip wrote: > Hi, > > I have heard of this utility called ' respawn ' which will start for example > a server up again if it somehow quits. > > May I know where I can find this? > > Thank you. > > Regards, > Seng Yip > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message