On 6/3/07, Bob Marcan <bob.marcan@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
i tried this in my logrotate but still it doesn't rotate by size here's my squid logrotate file
/var/log/squid/access.log {
# weekly
rotate 5
copytruncate
compress
notifempty
missingok
size=1000M
postrotate
/usr/sbin/squid -k rotate
#/sbin/killall -HUP squid
endscript
im not sure if i killall -HUP or just run squid -k rotate
thanks!
man logrotate.8
...
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www@xxxxxx
size=100k
sharedscripts
postrotate
/sbin/killall -HUP httpd
endscript
}
i tried this in my logrotate but still it doesn't rotate by size here's my squid logrotate file
/var/log/squid/access.log {
# weekly
rotate 5
copytruncate
compress
notifempty
missingok
size=1000M
postrotate
/usr/sbin/squid -k rotate
#/sbin/killall -HUP squid
endscript
im not sure if i killall -HUP or just run squid -k rotate
thanks!
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos