[SQU] squid not restarting

From: plendon <plendon@dont-contact.us>
Date: Fri, 06 Oct 2000 15:06:42 -0400

Hi,

I run a script each night on a linux system running Squid 2.3.STABLE3.
The script rotates the Squid logs, stops server and then restarts
server.

First problem, Squid server always shutsdown, but randomly does not
start from the script.
Second problem, Squid cache.log displays: WARNING: Disk space over
limit; 106486 KB > 102400 KB

There are two file systems on the linux system:
Filesystem 1k-blocks Used Available Use% Mounted
/dev/sda6 17105240 2617816 13618512 16% /
/dev/sda1 16835 5811 10155 36% /boot
Squid is installed on /

Listed is rotsqlog.sh and the cache.log. Any ideas why Squid sometimes
does not start from rotsqlog.sh and why I am getting the Disk space
WARNING?

# rotsqlog.sh
cd /usr/local/squid/logs
/bin/sleep 15
y=`date +%m%d%y -d yesterday`
if [[ -a access.log && -a cache.log && -a store.log ]] ;then
        /bin/mv access.log old/A.$Y
        /bin/mv cache.log old/C.$Y
        /bin/mv store.log old/S.$Y
# -k rotate sends an USR1 singnal, which causes Squid to rotate
# its log files. Note, logfile_rotate is set to zero in config
# file so that squid does not rotate logs, but still closes and
# reopens the log files (so that empty log files are created).
/usr/local/squid/bin/squid -k rotate
/bin/sleep 15
# restart the Squid server
# init.d script and stop: /usr/local/squid/bin/squid -k shutdown
/etc/rc.d/init.d/squid stop
/bin/sleep 5
# init.d script and start: /usr/local/bin/squid
/etc/rc.d/init.d/squid start
/bin/sleep 5

*** cache.log file when the rotsqlog.sh is ran ***
storeDirWriteCleanLogs: Starting...
  Finished. Wrote 17501 entries.
  Took 0.0 seconds (701386.7 entries/sec).
storeLogRotate: Rotating.
accessLogRotate: Rotating
WARNING: Disk space over limit: 106486 KB > 102400 KB
Preparing for shutdown after 20825 requests
Waiting 30 seconds for active connections to finish
FD 13 Closing HTTP connection
FD 14 Closing HTTP connection
WARNING: Disk space over limit: 106486 KB > 102400 KB
WARNING: Disk space over limit: 106486 KB > 102400 KB
WARNING: Disk space over limit: 106486 KB > 102400 KB
Shutting down ...
FD 15 Closing ICP connection
Closing unlinkd pipe on FD 11
storeDirWriteCleanLogs: Starting...
   Finished. Wrote 17501 entries.
   Took 0.0 seconds (709605.5 entries/sec).
CPU Usage: 9991.910 seconds = 9797.130 user + 194.780 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 3026
Memory usage for squid via mailinfo():
        total space in arena: 14335 KB
        
        Ordinary blocks: 14023 KB 616 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 175 KB 1 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 311 KB
        Total in use: 14199 KB 99%
        Total free: 311 KB 2%
Squid Cache (Version 2.3.STABLE3): Exiting normally.

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Sat Oct 07 2000 - 18:05:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:42 MST