[Ukfreebsd] newsyslog

Edmund Craske edmund at m00is.net
Tue May 12 19:23:49 BST 2009


Tutton, James wrote:
> Hi Folks,
> 
>  
> 
> Probably a very simple answer but can’t find it for looking.
> 
>  
> 
> How can you get newsyslog.conf to move older files to a separate
> directory.  The manual for newsyslog says
> 
>  
> 
>      *-a* _directory_
> 
>              Specify a _directory_ into which archived log files will be writ-
> 
>              ten.  If _directory_ is a relative path, it is appended to the par-
> 
>              ent directory of each log and the archived log is stored in the
> 
>              result.  If an absolute path is given, all archived logs are
> 
>              stored in the given _directory_.  If _directory_ does not exist for a
> 
>              specified log, it is ignored for that entry and the log is rotat-
> 
>              ed as if the *-a* option was not specified.
> 
>  
> 
> But can’t find an equivalent option to include in newsyslog.conf as want
> to put different files in different directories.
> 
>  
> 
> **James Tutton**

Based upon the man page, I would suggest that that option works on all logs
listed in newsyslog.conf so it would be all or nothing... You could always
run newsyslog twice with 2 different configs to just move certain ones, but
it's a bit of a kludge!

Ed


More information about the Ukfreebsd mailing list