Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 14:59:31 +1000 (EST)
From:      Andy Farkas <andyf@speednet.com.au>
To:        Martin Tsanov <cyberzone@odessos.org>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: startup script for killing the squid pid
Message-ID:  <Pine.BSF.4.33.0208071457030.75330-100000@backup.af.speednet.com.au>
In-Reply-To: <000901c23abf$bd8d16e0$0764a8c0@cyberzone.odessos.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 3 Aug 2002, Martin Tsanov wrote:

> Hello list,
>
> I have an internet cafe and use FreeBSD as a gateway/firewall
> doing DNS, Apache, PHP, MySQL and Squid. Everything works
> just great, except that i have an issue with Squid. This is not an
> always on machine, it is switched on in the morning and turned off
> in the evening. Sometimes (about 15%) Squid is not automatically
> started and therefore the local clients can't access the internet.
> When i try to run it manually, i get a message: Squid is already
> running,
> pid xxxx. So, i have to kill this pid and then start it manually. I
> think
> that somehow this pid has remained from the previous booting of the
> machine.
> Can someone recommend a startup script, which will check if the squid
> pid exists, then killing it and only after that starting squid? My
> shell is csh.
>
> %uname -a
> FreeBSD cyberzone.odessos.org 4.6-STABLE FreeBSD 4.6-STABLE #0:
> Wed Jun 26 20:54:49 EEST 2002
> Murphy@cyberzone.odessos.org:/usr/obj/usr/src/sys/CYBERZONE  i386
>
> Thanx in advance.
> Martin
>

The problem is squid not having enough time to shutdown properly.

Look in /usr/local/etc/rc.d/squid.sh for a solution.

--

 :{ andyf@speednet.com.au

        Andy Farkas
    System Administrator
   Speednet Communications
 http://www.speednet.com.au/




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.33.0208071457030.75330-100000>