>>> On Wednesday, 20. September 2006 at 10:04 am, Sascha Wilde<[EMAIL 
>>> PROTECTED]> wrote:
> I'm seeking information on how to configure logfile rotation in OpenPKG,
> especially min size, and age of files to rotate, as well as the number of
> rotated versions to hold before deletion are of interest.
> 
It works almost identical for all packages supporting it.  For package foo,
look into $PREFIX/etc/rc.d/rc.foo file.  You find some foo_log_* variables
defined in the %config section and later on they are passed verbatim into
"shtool rotate" in the %daily section.
Have a look at "openpkg man shtool-rotate"

Never modify the rc.foo file, it is not flagged config and will be overwritten
on next update. Override the default by placing an identically named variable
into $PREFIX/etc/rc.conf.

> I wasn't able to find documentation on that subject on
> http://www.openpkg.org/documentation/, in fact I couldn't find any decent
> information on the whole openpkg rc system.
> 
Have a look at "openpkg man rc"

> The faq mentions a handbook under "OpenPKG breaks with a few things from the
> good old Unix days. Why?" but I havn't found it.
> 
Oops. AFAIK the handbook has been removed because it was written for OpenPKG
1.x. However, the article [1] originally posted in Sysadmin Magazine some years
ago received a major overhaul only one month ago and is very up to date now.
Btw, Ralf refreshed the text after an inquiry by your collegue Bernhard R. ;-)

> I did find some variables in etc/rc.d/rc.fsl which look promising, but I'm
> unsure if fiddling with this file is TRTTD.  (And having documentation of the
> variables would be neat in any case...)
> 
It is safe to modify the $PREFIX/etc/fsl/fsl.foo file.
Everything you asked for in the first paragraph can be done with rc.conf.
However, if you want to log to something else but files, do filtering or
trickery like resuming logging after (re)moving the logfile without restarting
the affected daemon etc., fsl is the place to go.
Have a look at "openpkg man fsl".

Another useful command regarding the rc topic is "openpkg rc --config"

[1] http://www.openpkg.org/documentation/article/ 
 

-- 
Thomas
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to