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
Try -k shutdown instead of -k kill.
shutdown should cleanup all resources properly. kill I believe is a
quick and dirty close.
Amos
PID file still exists.
-----Original Message-----
From: Carlos Anderson Jardim [mailto:cajardim@xxxxxxxxxxxxxxxxxxx]
Sent: Friday, May 23, 2008 9:43 AM
To: Nick Duda; squid-users@xxxxxxxxxxxxxxx
Subject: RES: 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@xxxxxxxxxxxxxx]
Enviada em: sexta-feira, 23 de maio de 2008 10:36
Para: 'Carlos Anderson Jardim'; squid-users@xxxxxxxxxxxxxxx
Assunto: RE: 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@xxxxxxxxxxxxxxxxxxx]
Sent: Friday, May 23, 2008 9:28 AM
To: Nick Duda; squid-users@xxxxxxxxxxxxxxx
Subject: RES: 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@xxxxxxxxxxxxxx]
Enviada em: sexta-feira, 23 de maio de 2008 09:57
Para: 'squid-users@xxxxxxxxxxxxxxx'
Assunto: 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.
--
Please use Squid 2.6.STABLE20 or 3.0.STABLE5