概要 †
私が/etc/logrotate.d/rsyslogで使用している設定です。
logrotateの設定、rsyslogの設定に依存しています。
コード †
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| -
!
-
!
| /var/log/auth/log
/var/log/daemon/log
/var/log/kern/log
/var/log/rsyslog/log
/var/log/user/log
{
rotate 180
create 0640 root root
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/cron/log
/var/log/unimportant/local/log
/var/log/unimportant/lpr/log
/var/log/unimportant/mail/log
/var/log/unimportant/news/log
/var/log/unimportant/uucp/log
{
create 0640 root root
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
|
検証時の環境 †