Thread View: news.software.nntp
4 messages
4 total messages
Started by Jaeyoung Kim
Wed, 31 Dec 1997 00:00
[Q] How to rotate Diablo log files
Author: Jaeyoung Kim
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
36 lines
2106 bytes
2106 bytes
Hi, I'm running diablo 1.14 on my newsfeed machine. What made me
trouble right now is the diablo log file. The installation guide says
that the default log file for diablo server is /var/log/news/news.notice.
Instead accepting the default location, I made the log file
at /news/log/diablo.log with other log files (dspoolout.log and daily.log).
It's working ok for several days.
But when it comes to the log rotating, I don't know how to rotate
the diablo.log file which are generated by syslogd. The other log files
can be rotated by /news/adm/rot program. However, I failed to rotate diablo.
log by rot program which made diablo.log.0 file and the logging are still
running on the diablo.log.0 file!
After checking INN's scanlogs file, I found out that INN do rotate
with the command "ctlinnd -s flushlogs" which flushes the current logging
files. Diablo doesn't seem have such functions. :(
How could you guys out there manage this problem? Thanks in advance.
Sincerely,
Jay Kim
--
___________________________________________________________________________
_____ ___ __ __
__/\__ |_ _| / _ \ \ \_/ / Remember Yesterday, Dream about Tomorrow
\ / | | | /_\ | \ / but ... LIVE TODAY !!!
/_ _\ | | | _ | | |
\/ __| | | | | | | | jay@postech.ac.kr (Jae-young Kim)
|___/ |_| |_| |_| Researcher, Computer Center/POSTECH, KOREA
___________________________________________________________________________
Re: [Q] How to rotate Diablo log files
Author: Jan Isley
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
31 lines
1711 bytes
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
Re: [Q] How to rotate Diablo log files
Author: Jaeyoung Kim
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
25 lines
1779 bytes
1779 bytes
Jan Isley <jisley@eng.mindspring.net> wrote:
> ...
> >How could you guys out there manage this problem? Thanks in advance.
> On FreeBSD, I use newsyslog. On other systems, I use savelog, by
> Ronald Karr and Landon Curt Noll from the Smail distribution.
I installed savelog, but, it also failed to rotating logs.
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.
Do you stop the diablo process temporarily for rotating log files?
--
___________________________________________________________________________
_____ ___ __ __
__/\__ |_ _| / _ \ \ \_/ / Remember Yesterday, Dream about Tomorrow
\ / | | | /_\ | \ / but ... LIVE TODAY !!!
/_ _\ | | | _ | | |
\/ __| | | | | | | | jay@postech.ac.kr (Jae-young Kim)
|___/ |_| |_| |_| Researcher, Computer Center/POSTECH, KOREA
___________________________________________________________________________
Re: [Q] How to rotate Diablo log files
Author: Jan Isley
Date: Wed, 31 Dec 1997 00:00
Date: Wed, 31 Dec 1997 00:00
18 lines
1294 bytes
1294 bytes
According to Jaeyoung Kim <jay@ys.postech.ac.kr>: ... > > But when it comes to the log rotating, I don't know how to rotate > the diablo.log file which are generated by syslogd. The other log files > can be rotated by /news/adm/rot program. However, I failed to rotate diablo. > log by rot program which made diablo.log.0 file and the logging are still > running on the diablo.log.0 file! ... >How could you guys out there manage this problem? Thanks in advance. On FreeBSD, I use newsyslog. On other systems, I use savelog, by Ronald Karr and Landon Curt Noll from the Smail distribution. -Jan
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads