Re: Respawn to fast

From: Dancer <dancer@dont-contact.us>
Date: Mon, 09 Aug 1999 23:49:47 +1000

Add '-N' to the arguments to squid, to prevent it forking into the
background? I assume that you're getting the respawn message from init
and that this script is being run from inittab?

"Peter M. Nielsen" wrote:
>
> I'm using the following script to start squid at boot-time
>
> #!/bin/sh
> C=/usr/local/squid
> PATH=/usr/bin:$C/bin
> TZ=PST8PDT
> export PATH TZ
> notify="root"
> cd $C
> umask 022
> sleep 10
> while [ -f /tmp/nosquid ]; do
> sleep 1
> done
> /usr/bin/tail -20 $C/logs/cache.log \
> exec bin/squid -CYs
>
> It is running on a 486 100 mhz, an when I try to boot the machine it
> returns
> repawn to fast
>
> any ideas?
>
> Peter M.
> -----------------------------------------------------------------
> Institut for Konjunktur-Analyse
> Aabenraa 29
> 1124 København K
> Telefon: 33 32 82 70
> Telefax: 33 93 03 67
> ----------------------------------------------------------------
Received on Mon Aug 09 1999 - 07:40:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:53 MST