Re: starting stopping squid 2.2S3

From: Richard van Drimmelen <rdri@dont-contact.us>
Date: Wed, 07 Jul 1999 08:31:40 +0200

Thanks for all your answers.

The problem seems to be that there is NO squid.pid
(although it is set in squid.conf:
pid_filename /usr/local/proxy/logs/squid.pid)
And squid seems to be running fine.

So I do: squid -sY
And than I have various squid processes (and squid's working)

ps -efa | grep squid
root 4555 1 0 Jul06 ? 00:00:00 ./squid -sY
squid 4556 4555 0 Jul06 ? 00:00:01 (squid) -sY
squid 4557 4556 0 Jul06 ? 00:00:00 (dnsserver)
squid 4558 4556 0 Jul06 ? 00:00:00 (dnsserver)
squid 4559 4556 0 Jul06 ? 00:00:00 (dnsserver)
squid 4560 4556 0 Jul06 ? 00:00:00 (dnsserver)
squid 4561 4556 0 Jul06 ? 00:00:00 (dnsserver)
squid 4562 4556 0 Jul06 ? 00:00:00 (unlinkd)

But NO squid.pid ???????

Dancer wrote:
>
> Richard van Drimmelen wrote:
> >
> > Dear,
>
> Sweetie :)
>
> >
> > Try to stop squid:
> > squid -k shutdown
> > squid -k interrupt
> > squid -k kill
> >
> > All three give me the same error:
> > squid: ERROR: No running copy
>
> You need to make sure that pid_filename (in your squid.conf) is set to a
> pathname that squid can read and write under it's working uid. The
> process id is written there, so that the -k commands know which
> process-id to apply the commands to.
>
> >
> > (also the same message from all other "squid -k option" commands)
> >
> > What I understood from emails from Hendrik is that the Runcache is no
> > longer needed.
> > What is the correct way to shutdown the proxy server from a script (in
>
> squid -k shutdown should work (assuming that pid_filename is set
> properly. Although it's best if you then subsequently wait for it to
> finish doing so by checking it's process-id periodically...otherwise you
> could end up shutting down before squid's finished cleaning up.
>
> D

--
Richard van Drimmelen                       | email: rdri@nki.nl
System Management Research                  | phone: +31 20 5121899
The Netherlands Cancer Institute, Amsterdam | fax:   +31 20 5121893
Received on Wed Jul 07 1999 - 00:30:18 MDT

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