To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / deploy / config / logrotate.conf @ 1602:b22e234c3c7b

History | View | Annotate | Download (1.22 KB)

1
# see "man logrotate" for details
2
# rotate log files weekly
3
weekly
4

    
5
# use the syslog group by default, since this is the owning group
6
# of /var/log/syslog.
7
su root syslog
8

    
9
# keep 4 weeks worth of backlogs
10
rotate 4
11

    
12
# create new (empty) log files after rotating old ones
13
create
14

    
15
# uncomment this if you want your log files compressed
16
#compress
17

    
18
# packages drop log rotation information into this directory
19
include /etc/logrotate.d
20

    
21
# no packages own wtmp, or btmp -- we'll rotate them here
22
/var/log/wtmp {
23
    missingok
24
    monthly
25
    create 0664 root utmp
26
    rotate 1
27
}
28

    
29
/var/log/btmp {
30
    missingok
31
    monthly
32
    create 0660 root utmp
33
    rotate 1
34
}
35

    
36
# system-specific logs may be configured here
37
/var/www/code/log/*.log {
38
	weekly
39
	missingok
40
	rotate 52
41
	compress
42
	delaycompress
43
	create 640 code code
44
	sharedscripts
45
	postrotate
46
		touch /var/www/code/restart_files/restart.txt
47
	endscript
48
}
49

    
50
/var/log/reposman.log {
51
        weekly
52
        missingok
53
        rotate 52
54
        compress
55
        delaycompress
56
        create 640 www-data code
57
        sharedscripts
58
}
59

    
60
/var/log/external-repos.log {
61
        weekly
62
        missingok
63
        rotate 52
64
        compress
65
        delaycompress
66
        create 640 www-data code
67
        sharedscripts
68
}
69