1 |
On Monday 15 January 2007 19:32, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> I do not understand why the log files within /var/log/portage/ will |
5 |
> not rotate on my PC, while they rotate fine on my laptop. The |
6 |
> /etc/logrotate.conf is the same on both boxen: |
7 |
> ========================================== |
8 |
> # rotate log files weekly |
9 |
> weekly |
10 |
> #daily |
11 |
> |
12 |
> # keep 4 weeks worth of backlogs |
13 |
> rotate 4 |
14 |
> |
15 |
> # create new (empty) log files after rotating old ones |
16 |
> create |
17 |
> |
18 |
> # uncomment this if you want your log files compressed |
19 |
> compress |
20 |
> |
21 |
> # packages can drop log rotation information into this directory |
22 |
> include /etc/logrotate.d |
23 |
> |
24 |
> notifempty |
25 |
> nomail |
26 |
> noolddir |
27 |
> |
28 |
> [snip . . . ] |
29 |
> |
30 |
> # when /var/log/portage gets big |
31 |
> /var/log/portage/*.log |
32 |
> { |
33 |
> rotate 1 |
34 |
> weekly |
35 |
> nocreate |
36 |
> ifempty |
37 |
> olddir /var/log/portage/old |
38 |
> postrotate |
39 |
> find /var/log/portage/old -maxdepth 1 -mtime +30 -exec /bin/rm -f {} \; |
40 |
> endscript |
41 |
> nocompress |
42 |
> } |
43 |
> ========================================== |
44 |
> |
45 |
> The only difference I noticed (other than the fact that I have two |
46 |
> year old portage log files in /var/log/portage) between the two boxen |
47 |
> is that the access rights of the 'old' directory on the PC were: |
48 |
> |
49 |
> drwxr-sr-x 2 root root 48 Dec 23 2005 old |
50 |
> |
51 |
> while on the laptop which rotates without problems are: |
52 |
> |
53 |
> drwx------ 2 root root 4256 Jan 13 11:20 old |
54 |
> |
55 |
> This may be a bit of a red herring because even though I changed the |
56 |
> access rights as per the laptop, the PC still refuses to rotate the |
57 |
> portage log files. |
58 |
> |
59 |
> Any ideas? How do I troubleshoot this one? |
60 |
|
61 |
Anyone? Anything I could look into? |
62 |
-- |
63 |
Regards, |
64 |
Mick |