Re: [squid-users] Squid not running, PID exists

From: Adrian Chadd <adrian_at_creative.net.au>
Date: Fri, 23 May 2008 22:08:29 +0800

On Fri, May 23, 2008, Nick Duda wrote:
> Same thing. I start squid:
>
> /usr/local/squid/sbin/squid
>
> And then I kill it:
>
> /usr/local/squid/sbin/squid -k kill

tsk. squid -k shutdown!

Adrian

>
> PID file still exists.
>
> -----Original Message-----
> From: Carlos Anderson Jardim [mailto:cajardim_at_santacasasjc.com.br]
> Sent: Friday, May 23, 2008 9:43 AM
> To: Nick Duda; squid-users_at_squid-cache.org
> Subject: RES: [squid-users] Squid not running, PID exists
>
> Hi,
>
> Change in squid.conf the line pid_filename to:
>
> pid_filename /usr/local/squid/var/squid.pid
>
> And start the squid.
>
> Regards
>
> --------------------------------
> Carlos Anderson Jardim
> Tecnologia da Informacao - Redes e Internet
> Santa Casa de S?o Jos? dos Campos - SP - Brazil
> Linux User #403727
> FUG-BR User #381
> Tel.: +55 12 3876-1760
>
> -----Mensagem original-----
> De: Nick Duda [mailto:nduda_at_VistaPrint.com]
> Enviada em: sexta-feira, 23 de maio de 2008 10:36
> Para: 'Carlos Anderson Jardim'; squid-users_at_squid-cache.org
> Assunto: RE: [squid-users] Squid not running, PID exists
>
> Interesting. When I start it in debug mode (-NCd1) the squid.pid appears.
> When I stop squid in debug mode the squid.pid goes away. Why is this not
> happening when not running debug mode?
>
> The /usr/local/squid directory and everything below is owned to squid user,
> which is the effective user.
>
> Debug output:
>
> 2008/05/23 09:30:51| Starting Squid Cache version 2.6.STABLE19 for
> i686-pc-linux-gnu...
> 2008/05/23 09:30:51| Process ID 15752
> 2008/05/23 09:30:51| With 1024 file descriptors available
> 2008/05/23 09:30:51| Using epoll for the IO loop
> 2008/05/23 09:30:51| Performing DNS Tests...
> 2008/05/23 09:30:51| Successful DNS name lookup tests...
> 2008/05/23 09:30:51| DNS Socket created at 0.0.0.0, port 43529, FD 6
> 2008/05/23 09:30:51| Adding domain vistaprint.net from /etc/resolv.conf
> 2008/05/23 09:30:51| Adding nameserver x.x.x.x from /etc/resolv.conf
> 2008/05/23 09:30:51| Adding nameserver x.x.x.x from /etc/resolv.conf
> 2008/05/23 09:30:51| Adding nameserver x.x.x.x from /etc/resolv.conf
> 2008/05/23 09:30:51| helperOpenServers: Starting 50 'sf_userinfo' processes
> 2008/05/23 09:30:53| Unlinkd pipe opened on FD 61
> 2008/05/23 09:30:53| Swap maxSize 10238976 KB, estimated 787613 objects
> 2008/05/23 09:30:53| Target number of buckets: 39380
> 2008/05/23 09:30:53| Using 65536 Store buckets
> 2008/05/23 09:30:53| Max Mem size: 8192 KB
> 2008/05/23 09:30:53| Max Swap size: 10238976 KB
> 2008/05/23 09:30:53| Store logging disabled
> 2008/05/23 09:30:53| Rebuilding storage in /usr/local/squid/var/cache
> (DIRTY)
> 2008/05/23 09:30:53| Using Least Load store dir selection
> 2008/05/23 09:30:53| Current Directory is /usr/local/squid/var/logs
> 2008/05/23 09:30:53| Loaded Icons.
> 2008/05/23 09:30:53| Smartfilter: Initializing SmartFilter
> 2008/05/23 09:30:53| SmartFilter: SmartFilter Plugin Library Version
> 4.2.1.00
> 2008/05/23 09:30:53| SmartFilter: Trying to start plugin thread
> 2008/05/23 09:30:53| SmartFilter: Created communication thread
> 2008/05/23 09:30:53| SmartFilter: SmartFilter init: SmartFilter initialized.
> 2008/05/23 09:30:53| Accepting transparently proxied HTTP connections at
> 0.0.0.0, port 3128, FD 68.
> 2008/05/23 09:30:53| Accepting ICP messages at 0.0.0.0, port 3130, FD 69.
> 2008/05/23 09:30:53| Accepting SNMP messages on port 3401, FD 70.
> 2008/05/23 09:30:53| WCCP Disabled.
> 2008/05/23 09:30:53| Ready to serve requests.
> 2008/05/23 09:30:54| Store rebuilding is 1.5% complete
> 2008/05/23 09:30:56| Done reading /usr/local/squid/var/cache swaplog (277177
> entries)
> 2008/05/23 09:30:56| Finished rebuilding storage from disk.
> 2008/05/23 09:30:56| 277177 Entries scanned
> 2008/05/23 09:30:56| 0 Invalid entries.
> 2008/05/23 09:30:56| 0 With invalid flags.
> 2008/05/23 09:30:56| 277177 Objects loaded.
> 2008/05/23 09:30:56| 0 Objects expired.
> 2008/05/23 09:30:56| 0 Objects cancelled.
> 2008/05/23 09:30:56| 0 Duplicate URLs purged.
> 2008/05/23 09:30:56| 0 Swapfile clashes avoided.
> 2008/05/23 09:30:56| Took 3.1 seconds (88218.3 objects/sec).
> 2008/05/23 09:30:56| Beginning Validation Procedure
> 2008/05/23 09:30:56| 262144 Entries Validated so far.
> 2008/05/23 09:30:56| Completed Validation Procedure
> 2008/05/23 09:30:56| Validated 277177 Entries
> 2008/05/23 09:30:56| store_swap_size = 3937784k
> 2008/05/23 09:30:56| storeLateRelease: released 0 objects
>
>
>
> -----Original Message-----
> From: Carlos Anderson Jardim [mailto:cajardim_at_santacasasjc.com.br]
> Sent: Friday, May 23, 2008 9:28 AM
> To: Nick Duda; squid-users_at_squid-cache.org
> Subject: RES: [squid-users] Squid not running, PID exists
>
> 1 - If you start squid in debug mode, see the result, paste output here
> please.
>
> # squid -d
>
> 2 - Maybe the directory is not owner squid, verify permissions.
>
> Regards.
>
> --------------------------------
> Carlos Anderson Jardim
> Tecnologia da Informacao - Redes e Internet
> Santa Casa de S?o Jos? dos Campos - SP - Brazil
> Linux User #403727
> FUG-BR User #381
> Tel.: +55 12 3876-1760
>
>
> -----Mensagem original-----
> De: Nick Duda [mailto:nduda_at_VistaPrint.com]
> Enviada em: sexta-feira, 23 de maio de 2008 09:57
> Para: 'squid-users_at_squid-cache.org'
> Assunto: [squid-users] Squid not running, PID exists
>
> When squid is running, /usr/local/squid/var/logs/squid.pid exists
> If I kill squid, the pid file still exists.
> If I restart squid it just overwrites the squid.pid with the new PID
>
> Anyway I can tell squid when its not running to ditch the PID file (without
> relying on scripts and cron jobs to test for this?)
>
> - Nick
>
>
> ----
>
>
> Esta mensagem e seus anexos sao destinados exclusivamente ao(s) destinatario(s)
>
> identificado(s) acima e contem informacoes confidenciais ou privilegiadas.
>
> Se voce nao e o destinatario destes materiais, nao esta autorizado a utiliza-los
>
> para nenhum fim. Solicitamos que voce apague a mensagem e seus anexos e avise
>
> imediatamente o remetente. O conteudo desta mensagem e de seus anexos nao
>
> representa necessariamente a opiniao e a intencao da empresa, nao implicando em
>
> qualquer obrigacao ou responsabilidade adicionais.

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Fri May 23 2008 - 14:07:30 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 05 2008 - 01:05:14 MDT