I am currently working on requirement if any of the cache directories are unavailable or unwritable, squid will not start. We would like the squid to only refuse to start if "no" cache_dirs are available - if more than one is configured but some are unavailable, we'd like it to log the error and continue on with the known-good cache_dir(s).
I am able to do the required changes by having a global counter to track the clean cache directories and based on the counter value not equal to zero i am allowing squid to start. But I am facing these problems 1) the directory cleanup event is trying to cleanup the unavailable or unwritable cache directories 2) the objects are tried to cached into the unavailable or unwritable cache directories. As I am new to the squid, I would like to get some proper direction to fulfill this requirement. I am also mentioning the error messages that i am getting with this change error messages got after the startup 008/04/15 10:41:31| storeDirClean: WARNING: Creating /usr/local/squid.2.6_cachedir/cache/05/69 2008/04/15 10:41:31| storeDirClean: /usr/local/squid.2.6_cachedir/cache/05/69: (2) No such file or directory this messages are coming during object caching 2008/04/17 06:35:39| storeAufsOpenDone: (2) No such file or directory 2008/04/17 06:35:39| /usr/local/squid.2.6_cachedir/cache/00/00/0000005E 2008/04/17 06:35:39| storeSwapOutFileClosed: dirno 5, swapfile 0000005E, errflag=-1 Regards Saleem -- View this message in context: http://www.nabble.com/Squid-Startup-Requirement-tp16740169p16740169.html Sent from the Squid - Development mailing list archive at Nabble.com.
