Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2002 09:31:05 +0200
From:      "Martin Tsanov" <cyberzone@odessos.org>
To:        <freebsd-questions@freebsd.org>
Subject:   startup script for killing the squid pid
Message-ID:  <000901c23abf$bd8d16e0$0764a8c0@cyberzone.odessos.org>

next in thread | raw e-mail | index | archive | help
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


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?000901c23abf$bd8d16e0$0764a8c0>