1 |
Hi all, |
2 |
|
3 |
I'm running logrotate on my homeserver and the logs are rotated |
4 |
correctly but after rotating it should create new empty log files and |
5 |
that doesnt work. |
6 |
|
7 |
here are my confs: |
8 |
/etc/logrotate.conf: |
9 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v |
10 |
1.2 2004/07/18 01:58:24 dragonheart Exp $ |
11 |
# |
12 |
# Logrotate default configuration file for Gentoo Linux |
13 |
# |
14 |
# See "man logrotate" for details |
15 |
|
16 |
# rotate log files weekly |
17 |
weekly |
18 |
#daily |
19 |
|
20 |
# keep 4 weeks worth of backlogs |
21 |
rotate 10 |
22 |
|
23 |
# create new (empty) log files after rotating old ones |
24 |
create |
25 |
|
26 |
# uncomment this if you want your log files compressed |
27 |
compress |
28 |
|
29 |
# packages can drop log rotation information into this directory |
30 |
include /etc/logrotate.d |
31 |
|
32 |
notifempty |
33 |
nomail |
34 |
noolddir |
35 |
|
36 |
# no packages own lastlog or wtmp -- we'll rotate them here |
37 |
/var/log/wtmp { |
38 |
monthly |
39 |
create 0664 root utmp |
40 |
rotate 1 |
41 |
} |
42 |
|
43 |
# system-specific logs may be also be configured here. |
44 |
|
45 |
and /etc/logrotate.d/syslog-ng: |
46 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v |
47 |
1.2 2004/07/18 02:25:02 dragonheart Exp $ |
48 |
# |
49 |
# Syslog-ng logrotate snippet for Gentoo Linux |
50 |
# contributed by Michael Sterrett |
51 |
# |
52 |
|
53 |
/var/log/messages { |
54 |
dateext |
55 |
olddir /var/log/ |
56 |
copy |
57 |
create 0600 root root |
58 |
size 5000k |
59 |
sharedscripts |
60 |
postrotate |
61 |
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true |
62 |
endscript |
63 |
} |
64 |
|
65 |
I thought create will do this but it doesn't work and my logs getting |
66 |
bigger and bigger. |
67 |
What did I do wron? |
68 |
|
69 |
Regards |
70 |
|
71 |
Jakob |
72 |
-- |
73 |
gentoo-user@g.o mailing list |