« fd | Main | HTTP 1.0/1.1 »
January 5, 2005
logrotate on demand~
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2005/01/05/000546.html 尽管我不喜欢它 squid httpd proftpd ... 如果采用 logrotate 的话 需要写一个配置文件 NAME SYNOPSIS /etc/logrotate.conf 和 /etc/logrotate.d/ 是默认的配置文件和目录 % cat /etc/logrotate.conf # keep 4 weeks worth of backlogs # create new (empty) log files after rotating old ones # uncomment this if you want your log files compressed # RPM packages drop log rotation information into this directory # no packages own wtmp -- we'll rotate them here % cat /etc/logrotate.d/httpd 这是我改用"mv 结合 squid 自身的 rotate 之前曾用过的logrotate处理方式 /usr/sbin/logrotate /etc/squid/logrotate.conf % cat /etc/squid/logrotate.conf 这是另一个 如今 squid apache proftpd ... 我都尽量手工去mv 然后HUP 达到rotate的目的 写一下以表示对其历史地位的尊重 |
Posted by windtear at January 5, 2005 8:49 PM