On Sat, Jan 15, 2005, F. Even wrote:

> Where can I find information on how to configure logging?

Well, every OpenPKG package "foo" which contains a
<prefix>/etc/fsl/fsl.foo file logs via OSSP fsl and hence its
logging is controlled in <prefix>/etc/fsl/fsl.foo (a %config file
you are allowed to change without risk). The rotation of the logfile
(which is preconfigured in <prefix>/etc/fsl/fsl.foo to usually be
<prefix>/var/foo/foo.log is done in <prefix>/etc/rc.d/rc.foo.

> [...] I've finally pulled
> postfix into my opkg config, and I want my maillogs rotated daily and a
> good number of them kept around.
>
> fsl.postfix does not appear to be the file I need.
> rc.postfix seems to have some of the configuration I'm looking for:
>
> %config
>     MTA_name="postfix"
>     MTA_aliases_file="/cw/etc/postfix/aliases"
>     MTA_aliases_update="cd /cw/etc/postfix && /cw/sbin/postalias aliases"
>     postfix_enable="$openpkg_rc_def"
>     postfix_log_prolog="true"
>     postfix_log_epilog="true"
>     postfix_log_numfiles="10"
>     postfix_log_minsize="1M"
>     postfix_log_complevel="9"
>     postfix_sum_flags=""
>
> ...but I'm unable to find any information on exactly what each of these
> variables does before I go adjusting them.  Granted, I can take a guess
> on a few of them, but I want to know how I can have these rotated daily,
> @ midnight....and I don't see any info that helps me configure these
> options.

_When_ the logfile is rotated is usually not configurable. Its usually
done in the %daily section of rc.foo and this is by default at (luckily
you are ;-) midnight. For how long the logfiles are kept you can control
in <prefix>/etc/rc.conf by overriding he postfix_log_numfiles variable
from <prefix>/etc/rc.d/rc.postfix.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [email protected]

Reply via email to