squid always creates new cache directories at startup and crashes when shutting down
Hello list, got a problem with my squid (2.3) whenever I shut down squid, it gives me a warning that it has been killed. (not every time???) when I start squid ("rcsquid start") it always creates new cache directories. cache_dir ufs /cache 275 16 256 ....where /cache is a partition with 300MB. Squid runs without any problems (except this one :) The /var/log/squid7cache.log gives the following output: CPU Usage: 0.420 seconds = 0.230 user + 0.190 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 315 Memory usage for squid via mallinfo(): total space in arena: 3802 KB Ordinary blocks: 3785 KB 4 blks Small blocks: 0 KB 0 blks Holding blocks: 692 KB 1 blks Free Small blocks: 0 KB Free Ordinary blocks: 17 KB Total in use: 4477 KB 118% Total free: 17 KB 0% 2002/07/22 10:36:42| Squid Cache (Version 2.3.STABLE4-hno.CVS): Exiting normally. 2002/07/22 10:36:46| Starting Squid Cache version 2.3.STABLE4-hno.CVS for i686-pc-linux-gnu... 2002/07/22 10:36:46| Process ID 22875 2002/07/22 10:36:46| With 4096 file descriptors available 2002/07/22 10:36:46| DNS Socket created on FD 2 2002/07/22 10:36:46| Adding nameserver 212.19.40.14 from /etc/resolv.conf 2002/07/22 10:36:46| Adding nameserver 212.19.48.14 from /etc/resolv.conf 2002/07/22 10:36:46| Unlinkd pipe opened on FD 7 I've checked the filepermissions, they're ok. there's also enough space on /cache. I run SuSE 7.2, SuSEFirewall 2 on a standard installation. Hope sbd can help me......... Thanks maX Bauer InSight Education GmbH 069 - 587098-90 mbauer@in-sight.de
On Mon, Jul 22, 2002 at 02:46:17PM +0200, mbauer@in-sight.de wrote:
Hello list, got a problem with my squid (2.3) whenever I shut down squid, it gives me a warning that it has been killed. (not every time???) when I start squid ("rcsquid start") it always creates new cache directories.
cache_dir ufs /cache 275 16 256 ....where /cache is a partition with 300MB.
The start script has the path /var/squid/cache (or /var/cache/squid since 8.0) hardcoded; it looks whether some directory in that directory is present and it runs 'squid -z' if not. So you'll have to change the path in the init script /etc/init.d/squid too. Or make /var/squid/cache a symbolic link to /cache. That will save you headaches on any forthcoming squid updates. Peter -- VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day...
participants (2)
-
mbauer@in-sight.de
-
Peter Poeml