Search squid archive

Re: Problem restarting/stopping squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First make sure that logrotate is doing all the work (squid reload), and that the init script has the correct paths/access rights to the PID file.

---------------------------------------------
Chad E. Naugle
Tech Support II, x. 7981
Travel Impressions, Ltd.
 


>>> Sergio Belkin <sebelk@xxxxxxxxx> 9/16/2010 9:16 AM >>>
Hi,

I use squid squid-2.6.STABLE21-3.el5 on CentOS 5.4. The problem is
that squid can't be restarted and "rotate" isnt working, I mean log
rotating is done but I have to start  the service by hand.


/var/log/squid/squid.out it says:

2010/09/16 09:59:27| Squid is already running!  Process ID 30874


/etc/squid/squid.conf contains: shutdown_lifetime 100 seconds

/etc/logrotate.d/squid has:


/var/log/squid/access.log {
    weekly
    rotate 3
    size 3500M
    copytruncate
    compress
    notifempty
    missingok
}
/var/log/squid/cache.log {
    weekly
    rotate 4
    size 1000M
    copytruncate
    compress
    notifempty
    missingok
}


/var/log/squid/store.log {
    weekly
    rotate 4
    size 1000M
    copytruncate
    compress
    notifempty
    missingok
    postrotate
    postrotate
      /usr/sbin/squid -k rotate
    endscript
}

And what about PID file?:

ls -l /var/run/squid.pid
-rw-r--r-- 1 root squid 6 Sep 16 09:59 /var/run/squid.pid

And what about disk space?

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      145G  131G  6.0G  96% /
/dev/sda1              99M   19M   75M  21% /boot
tmpfs                 3.5G     0  3.5G   0% /dev/shm



If you want to take a look to init script, you can do it on
http://pastebin.com/X1HEeq1G 

Please could you tell me what's wrong with my config

Thanks in advance!
-- 
--
Sergio Belkin http://www.sergiobelkin.com 
Watch More TV http://sebelk.blogspot.com 
Sergio Belkin -


Travel Impressions made the following annotations
-------------------------------------------------------------
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information.  If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited.  If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments.
Thank you."



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux