[Xitami] supervisor agent and logs

Ewen McNeill xitami@lists.xitami.org
Tue, 14 Aug 2001 21:23:13 +1200


In message <00fc01c11f12$e45bac10$659305c3@futeltra>, "Michael S. Kazarin" writes:
>Ewen wrote:
>| You might be better working with it, to tell it not to remove log files
>| as often.  You can configure the log rotation and how long they're kept
>| in the Xitami configuration file as well.
>
>How do I actually do that? I have my logs cycled daily, so there is a file
>for each day.  But how can I tell it to keep more than 14 of them, 
>i. e. more than two weeks of logs.

I've just stared at the source a little, and it seems that you can't
control what the supervisor does -- it seems to have the
two-weeks-is-plenty setting hard coded into it :-(

In which case, at present, you'll either have to disable the supervisor,
or you'll have to change the source.

According to the source the Xitami supervisor can be disabled by
setting:

[server] supervisor=0

(which appears to be the default setting, in at least some versions of
Xitami.)

If it isn't the default in your version, you should set it in
defaults.cfg; that's the only place it'll be noticed, as it's checked as
xitami is starting up.  (If that doesn't work try changing xitami.cfg as
well, but I suspect that won't make a difference.)

Sorry for the confusion -- you were on the right track after all.  It
_should_ be possible to configure how long the supervisor keeps things
around though.

Ewen

-- 
Ewen McNeill, Technical Consultant, iMatix Corporation  www.imatix.com