Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 1999 23:41:32 +0600 (ESS)
From:      Ilia Chipitsine <ilia@cgilh.chel.su>
To:        Ho Seng Yip <hsengyip@singnet.com.sg>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Respawn
Message-ID:  <Pine.BSF.4.05.9908052319440.3143-100000@localhost.cgu.chel.su>
In-Reply-To: <004001bedf5d$bc99c820$7da115a5@oasis>

next in thread | previous in thread | raw e-mail | index | archive | help
I remember using it with crack-5 ... 

1. add the following line to your crontab (by running 'crontab -e')
59 * * * * /home/<someuser>/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 <what-server-we-need> /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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9908052319440.3143-100000>