People stop waste words.
Run this one.
#!/bin/sh
#
# $Id: RunCache.in,v 1.9 1999/01/29 18:19:46 wessels Exp $
prefix=/var/log/squid/logs
exec_prefix=${prefix}
logdir=${prefix}
PATH=${exec_prefix}/bin:/bin:/usr/bin:/usr/local/squid/bin
export PATH
conf="/usr/local/squid/squid.conf"
if test "$1" ; then
conf="-f $1"
shift
fi
failcount=0
while : ; do
echo "Running: squid -sY $conf >> $logdir/squid.out 2>&1"
echo "Startup: `date`" >> $logdir/squid.out
start=`date '+%d%H%M%S'`
squid -NsY $conf >> $logdir/squid.out 2>&1
stop=`date '+%d%H%M%S'`
t=`expr $stop - $start`
if test 0 -le $t -a $t -lt 5 ; then
failcount=`expr $failcount + 1`
else
failcount=0
fi
if test $failcount -gt 5 ; then
echo "RunCache: EXITING DUE TO REPEATED, FREQUENT FAILURES" >&2
exit 1
fi
sleep 10
done
________________________________________________________________________________
Jonathan Ben-Avraham wrote:
> On Wed, 29 Dec 1999, Mike wrote:
>
> > Hi list.
> > Is there any script that start up process when they go down ?
> >
> > Thanks,
> >
> > Mike
> >
> >
> >
> > =================================================================
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> >
>
> RTFM inittab
> /respawn
>
> - yba
>
> EE 77 7F 30 4A 64 2E C5 83 5F E7 49 A6 82 29 BA ~. .~ TclTek Ltd.
> =}-------------------------------------------------ooO--U--Ooo-----------{=
> - [EMAIL PROTECTED] - tel: +972.52.670.353, http://www.tcltek.co.il -
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
--
------------------------------------------------------------------------------
Computer Center of Haifa University Mount Carmel, Haifa 31905, Israel
------------------------------------------------------------------------------
Constantin Eizner | Tel. 972-4-8249299 Fax. 972-4-8249177
Network Engineer, Unix Sysadmin |
______________________________________________________________________________
fingerprint = D1 B2 98 70 34 30 18 2F 81 C5 8E C4 AE 02 86 6E
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]