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 @ 1589:94669513c53c

History | View | Annotate | Download (1.11 KB)

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

    
5
# keep 4 weeks worth of backlogs
6
rotate 4
7

    
8
# create new (empty) log files after rotating old ones
9
create
10

    
11
# uncomment this if you want your log files compressed
12
#compress
13

    
14
# packages drop log rotation information into this directory
15
include /etc/logrotate.d
16

    
17
# no packages own wtmp, or btmp -- we'll rotate them here
18
/var/log/wtmp {
19
    missingok
20
    monthly
21
    create 0664 root utmp
22
    rotate 1
23
}
24

    
25
/var/log/btmp {
26
    missingok
27
    monthly
28
    create 0660 root utmp
29
    rotate 1
30
}
31

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

    
46
/var/log/reposman.log {
47
        weekly
48
        missingok
49
        rotate 52
50
        compress
51
        delaycompress
52
        create 640 www-data code
53
        sharedscripts
54
}
55

    
56
/var/log/external-repos.log {
57
        weekly
58
        missingok
59
        rotate 52
60
        compress
61
        delaycompress
62
        create 640 www-data code
63
        sharedscripts
64
}
65