1 |
On 11/19/2016 04:21 PM, Harry Putnam wrote: |
2 |
> Mick <michaelkintzios@×××××.com> writes: |
3 |
> |
4 |
>> On Saturday 19 Nov 2016 08:54:53 Harry Putnam wrote: |
5 |
>>> After looking thru the portage man pages, the make.conf.example in |
6 |
>>> /usr/share/portage/config, and the `Portage log wiki' it still is not |
7 |
>>> clear to me how long elogs are kept if you use the `save' flag in |
8 |
>>> make.conf or not. |
9 |
>>> |
10 |
>>> I did see something about '7 days' but it was not clear if that is the |
11 |
>>> default and `save' over-rides it or what. Or if there is another flag |
12 |
>>> that controls there duration... |
13 |
>>> |
14 |
>>> Can anyone throw light on that? |
15 |
>> |
16 |
>> If you have logrotate then its configuration and associated cron jobs will take |
17 |
>> care of that. |
18 |
> |
19 |
> What I want to know is if the elog program will do something on its |
20 |
> own... I'm wanting to hang on to the logs a good while... I saw |
21 |
> something in my readings about the elog system about 7 days... was not |
22 |
> clear if that is a defalult or what. |
23 |
> |
24 |
> So my fear was losing them even if I am logrotate at them in some |
25 |
> capacity. So I'm asking about inside the elog program... what happens |
26 |
> to the logs and when. |
27 |
> |
28 |
> |
29 |
According to make.conf.example, PORTAGE_ELOG_SYSTEM="save" creates one |
30 |
log per package under $PORT_LOGDIR/elog (/var/log/portage/elog if unset). |
31 |
|
32 |
What this means is Portage will continue to use whatever path you have |
33 |
specified, and it's up to your syslogd or logrotate to determine whether |
34 |
those particular logs get deleted. |
35 |
|
36 |
I suggest looking through /etc/logrotate{.conf,.d/} and grokking things |
37 |
to determine how long your elogs will last. On my system, I noticed I |
38 |
have /etc/logrotate.d/elog-save-summary, so if you find a file like |
39 |
that, it's a good place to start. Without logrotate handling it, I see |
40 |
no reason to believe Portage will nix elog output after 7 days. |
41 |
|
42 |
In case I've missed something, could you link to the page that mentions |
43 |
7 days? I searched through manpages and the wiki but haven't found any |
44 |
other "save" option or anything to do with elog and 7 days. |
45 |
|
46 |
-- |
47 |
Daniel Campbell - Gentoo Developer |
48 |
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net |
49 |
fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 |