source: trunk/server/fedora/config/etc/logrotate.d/httpd @ 2379

Last change on this file since 2379 was 2379, checked in by adehnert, 9 years ago
Correctly set mode of suexec.log Historically, suexec.log has been rolled with error_log, and thus the permissions have matched. However, suexec.log is considered too private for logview@ to be able to read. We've handled this by making /var/log/httpd/ readable only by root, but by fixing suexec.log's permissions we eliminate the possibility of it being readable by some sort of subtle trick, and also open the way to making /var/log/httpd/ more broadly readable.
File size: 618 bytes
Line 
1/home/logview/*log {
2    rotate 0
3    daily
4    missingok
5    notifempty
6    create 640 root logview
7    sharedscripts
8    postrotate
9        /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
10    endscript
11}
12
13/var/log/httpd/suexec.log {
14    rotate 0
15    daily
16    missingok
17    notifempty
18    create 600 root root
19    # No HUP, because suexec doesn't open this log persistently.
20}
21
22/var/log/httpd/statistics_log {
23    rotate 14
24    daily
25    missingok
26    notifempty
27    sharedscripts
28    postrotate
29        /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
30    endscript
31}
Note: See TracBrowser for help on using the repository browser.