LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2014, 05:40 AM   #1
sbaynes
LQ Newbie
 
Registered: Oct 2014
Posts: 28

Rep: Reputation: Disabled
Question How to tell when Squid has finished setting up disk cache directories?


At times we automatically start Squid from a clean setup. We run squid -z to create the cache directories and then start Squid for normal operation. The question is how to know when squid -z has finished and it is safe to start Squid for normal operation.

This is not a problem when one has one squid worker, one uses the -N (don't background) option as well and just waits for the process to finish.

However we want to use Squid with multiple workers and the problem is the -N option overrides the number of workers and it sets up only one cache directory. (Squid has one cache directory per worker.) If one does not wait then when Squid starts for normal operation the cache directories are not ready and it fails.

I am considering polling for the process with the PID written to the Squid pid file and when that exits assume all is OK, but this seems a bit clumsy. So I was wondering if anyone had any good ideas.
 
Old 10-03-2014, 08:18 AM   #2
sbaynes
LQ Newbie
 
Registered: Oct 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
I now discover that it does not even write a PID file when the -z option is used. :-(
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 09:04 AM
squid cache directories Ammad Linux - Server 1 08-12-2007 06:57 AM
running squid without disk cache win32sux Linux - Networking 5 09-22-2004 12:39 PM
Setting up Linux NAT with Squid web cache mikeaustn Linux - Networking 5 03-02-2004 09:59 PM
Storage Fromat for Squid cache directories RajaRC Red Hat 0 11-14-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration