On Wed, 22 Nov 2000, Peter Gervai wrote:
> On Wed, Nov 22, 2000 at 03:44:58PM +0200, Igor Khasilev wrote:
> > On Wed, 22 Nov 2000, Peter Gervai wrote:
> >
> > > Version: experimental
> > >
> > > Rotate doesn't seem to rotate access.log, only oops.log...
> >
> > It worked for me. How did you test it?
>
> oopsctl rotate
>
> the logfile doesn't have any automagic rotation flags, because I want
> to rotate it daily and not by the size.
>
> how shall it written in the config file? (I want to keep all rotated
> logs, and rotate it daily by hand.)
OK, then rotate access_logs as usual logs are rotated:
shift all olg logs, then "mv access_log access.log.0" then send SIGWINCH to
oops (or call oopsctl rotate if you don't use tools like newsyslog).
The main idea behind this is: if you didn't point out the number of saved
logs and their sizes, then we assume nothing about method you choose to
store old logs. So on receiving SIGWINCH or logrotate oops just close
such log and then again open it. So iv you move log to new location then
this "reopen" will leave old log and start new.
>
> grin
> =====================================================================
> If you would like to unsubscribe from this list send message to
> [EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
> Archive is accessible on http://www.paco.net/oops/
>
Igor Khasilev |
PACO Links, igor at paco dot net |
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
Archive is accessible on http://www.paco.net/oops/