Re: Squid at startup

From: Lubna Sorour <lsorour@dont-contact.us>
Date: Wed, 17 Mar 1999 11:33:43 +0200

I dont know about the disabled for 5 minutes part...but concerning the message:
/usr/local/squid/bin/squid.sh: dale: command not found
I think you misstyped the word date in your squid.sh script and wrote dale.

Joel Taqueban wrote:

> I want to start Squid automatically when the system boots.
> >From the FAQ list I already placed the ff line on /etc/inittab:
>
> sq:3:respawn:/usr/local/squid/bin/squid.sh < /dev/null >> /tmp/squid.log 2>>&1
>
> From the Squid FAQs I copied the squid.sh with contents
>
> #!/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 \
> | Mail -s "Squid restart on `hostname` at `date`" $notify
> exec bin/squid -CYs
>
>
>
> ## my hostname: dale
>
> I then tried to reboot the system. After the system startup
> found squid was then running. However, below message keep
> on filling up my screen:
>
> INIT: Id "sq" respawning too fast: disabled for 5 minutes
> squid[1047]: Squid Parent: child process 1050 started
> squid[1098]: Squid Parent: child process 1102 started
> squid[1138]: Squid Parent: child process 1139 started
> squid[1145]: Squid Parent: child process 1148 started
>
> What does the above messages mean? What does 'disable for 5 minutes' mean? How
> do I prevent the above from garbling my screen?
>
> Also, the /tmp/squid.out keeps on logging the errors:
>
> /usr/local/squid/bin/squid.sh: dale: command not found
> /usr/local/squid/bin/squid.sh: date: command not found
>
>
> Any paramaters I missed?
>
> Awaiting help on the above,
>
> Joel Taqueban
Received on Wed Mar 17 1999 - 02:47:37 MST

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