blob: 2586fa3a4adf702c706c059ab3576e56b0318d49 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $Id$
#
# Syslog-ng logrotate snippet for Hardened Gentoo Linux
# contributed by Maciej Grela
#
# Updated bug #284669
# Generic
/var/log/debug /var/log/syslog /var/log/kern.log {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# System services
/var/log/cron.log /var/log/daemon.log /var/log/lpr.log /var/log/uucp.log {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# User log
/var/log/user.log {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# News system
/var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# Mail system
/var/log/mail.log /var/log/mail.info /var/log/mail.err /var/log/mail.warn {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# Hardened logs
/var/log/avc.log /var/log/audit.log /var/log/pax.log /var/log/grsec.log {
sharedscripts
missingok
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# Authentication
/var/log/auth.log {
sharedscripts
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
# the rest
/var/log/messages {
sharedscripts
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
|