🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24699

Re: [Q] How to rotate Diablo log files

#24699
From: Jan Isley
Date: Wed, 31 Dec 1997 00:00
31 lines
1711 bytes
According to Jaeyoung Kim  <jay@ys.postech.ac.kr>:
 
> It moves diablo.log to OLD/diablo.log.0. Syslogd still writes output
> to OLD/diablo.log.0! I think my problem is how to make syslogd switch
> to a new log file while running Diablo program.
 
Then syslogd is not getting HUP'd.  newsyslog should do that
when configured properly.

> Do you stop the diablo process temporarily for rotating log files?

No.  But you do need several things working together.  Here's what
I use on my Diablo boxes to rotate my news logs at midnight.

news:/etc$ grep  newsyslog crontab 
0 * * * * root /usr/sbin/newsyslog

news:/etc$ grep news syslog.conf 
news.crit   /var/log/news/news.crit
news.err    /var/log/news/news.err
news.*      /var/log/news/news.notice

news:/etc$ grep news newsyslog.conf 
/var/log/news/news.crit   news.news 644 7 * 24
/var/log/news/news.err    news.news 644 7 * 24
/var/log/news/news.notice news.news 644 7 * 24

-Jan

Technical Details
Message-ID: <68coe0$or2@camel15.mindspring.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <68c90r$ota$1@news.postech.ac.kr> <68cf8t$kjm@camel20.mindspring.com> <68clgj$32o$1@news.postech.ac.kr>

Show Full Headers
Complete Article Headers
Message-ID: <68coe0$or2@camel15.mindspring.com>
Subject: Re: [Q] How to rotate Diablo log files
Date: Wed, 31 Dec 1997 00:00:00 +0000
From: Jan Isley <jisley@eng.mindspring.net>
References: <68c90r$ota$1@news.postech.ac.kr> <68cf8t$kjm@camel20.mindspring.com> <68clgj$32o$1@news.postech.ac.kr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 311560599
Distribution: inet
Organization: MindSpring Enterprises
Newsgroups: news.software.nntp
Originator: jisley@bilbo.eng.mindspring.net (Jan Isley)
X-Newsposter: trn 4.0-test56 (2 Mar 97)