原帖由
shichunda 于 2008-6-6 10:17 发表

我知道include的作用,当读到include的时候就调用include指向的文件。但不知道该如何使用这个东西,希望小洲斑竹举个例子给指导一下。谢谢
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
$ ls -l /etc/logrotate.d
總計 52
-rw-r--r-- 1 root root 230 2008-04-16 20:46 freshclam
-rw-r--r-- 1 root root 366 2007-03-03 00:57 httpd
-rw-r--r-- 1 root root 188 2006-09-25 15:54 jftpgw
-rw-r--r-- 1 root root 157 2008-03-21 03:52 lighttpd
-rw-r--r-- 1 root root 136 2008-04-05 01:03 ppp
-rw-r--r-- 1 root root 54 2007-12-06 21:37 prelink
-rw-r--r-- 1 root root 213 2008-02-17 06:37 proftpd
-rw-r--r-- 1 root root 61 2008-05-14 05:57 rpm
-rw-r--r-- 1 root root 232 2008-03-23 22:27 samba
-rw-r--r-- 1 root root 52 2008-05-04 00:37 snmpd
-rw-r--r-- 1 root root 543 2008-05-12 22:13 squid
-rw-r--r-- 1 root root 61 2008-05-18 14:29 sudo
-rw-r--r-- 1 root root 438 2008-03-05 18:16 syslog