Search squid archive

Problem restarting/stopping squid

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

 



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 -


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

  Powered by Linux