Re: Configuring Logfile rotation.

2006-09-25 Thread Bernhard Reiter
On Thursday 21 September 2006 23:31, Thomas Lotterer wrote:
 Have a look at openpkg man shtool-rotate

I think logrote also works with the package openpkg-tools installed
and shtool _not_ installed. In this case (e.g. with many Kolab Servers) 
there is no manpage shtool-rotate on the system.

  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. ;-)

Yes, it is very important to have answers to this questions around.

Thanks for your help,
Bernhard

-- 
Managing Director - Owner, www.intevation.net   (Free Software Company)
Germany Coordinator, fsfeurope.org   (Non-Profit Org for Free Software)
www.kolab-konsortium.com   (Email/Groupware Solution, Professional Service)


pgpZqAzWsl3KL.pgp
Description: PGP signature


Re: Configuring Logfile rotation.

2006-09-25 Thread Thomas Lotterer
 On Monday, 25. September 2006 at 2:40 pm, Bernhard Reiter[EMAIL 
 PROTECTED] wrote:
 there is no manpage shtool-rotate on the system.
 
GNU shtool is a highly modular application which can be found in various levels
of completeness through the field. The shtool rotate command ships as part of
the bootstrap, the manual page shtool-rotate does not. Readers have to
install the shtool package to get a full featured installation including the
manual page.

  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 [...]
 
 Yes, it is very important to have answers to this questions around.
 
I improved the FAQ [1] entry.

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

-- 
Thomas
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: Configuring Logfile rotation.

2006-09-21 Thread Thomas Lotterer
 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 Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org