Re: NNTPC: Log files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>I prefer the approach taken by the scanlogs shell
>script from the INN distribution. For syslog files,
>use :
>
>cp ${SYSLOG_FILE} ${OLD}/${SYSLOG_FILE}
>cat /dev/null > ${SYSLOG_FILE}

This is much the same as what I use - the rotation script was ripped out of an
old suno4.1.3 setup I run here. 

>This works much better on a machine that does
>it's own syslog file management, such as DEC
>UNIX. My news.notice file does not exist in
>the same place as the rest of the syslog files.

It's all a matter of how you write your scripts. My basic script can handle
logfiles in any tree and multiple trees simply by adding more directory lines.

The one I use for nightly newslog rotation is available at
ftp://news.manawatu.gen.nz/pub/news/newnewslog

It's messy but it works for me. :-)

AB 


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux