source: trunk/athena/etc/newsyslog/newsyslog.8 @ 8203

Revision 8203, 3.0 KB checked in by bert, 29 years ago (diff)
updated the manpage for the new version.
Line 
1.TH NEWSYSLOG 8 "November 30, 1995" "MIT Athena"
2.SH NAME
3newsyslog \- maintain system log files to manageable sizes
4.SH SYNOPSIS
5.B /etc/athena/newsyslog
6.RB [ \-vnr ]
7[\fB\-f \fIconfig-file\fR] [\fB\-t \fIsleep\fR]
8.SH DESCRIPTION
9.I Newsyslog
10is a program that should be scheduled to run periodically by
11.IR crontab .
12When it is executed, it archives and processes log files if necessary.
13Processes writing to the log file (usually
14.IR syslogd )
15are signalled so they can start using the new log file.
16.PP
17There are two possible conditions for
18.I newsyslog
19to turn over the log file: the file may have grown bigger than a
20preset size in kilobytes, or a preset number of hours may have elapsed
21since the last log archive.  The granularity of
22.I newsyslog
23is dependent on how often it is scheduled to run in crontab.  Since
24the program is quite fast, it may be scheduled to run every hour
25without any ill effects.
26.PP
27If a log file is determined to require archiving,
28.I newsyslog
29usually rearranges the files so that ``logfile'' is empty,
30``logfile.0'' has the last period's logs in it, ``logfile.1'' has the
31next to last period's logs in it, and so on, up to a user-specified
32number of archived logs.
33If the log files are to be archived indefinitely, it is sometimes more
34convenient to label the filenames with the date when the file was
35turned over.  In this case, the files will be named
36``logfile.YYYYMMDD'' instead of ``logfile.N'', but the number of
37log files stored can still be specified by the user.
38.PP
39When starting up,
40.I newsyslog
41reads in a configuration file to determine which logs should be looked
42at.  By default, this configuration file is
43.IR /etc/athena/newsyslog.conf .
44The syntax of this file is described in a separate manpage.
45.PP
46.SH OPTIONS
47The following options can be used with newsyslog:
48.TP
49.B \-f \fIconfig-file
50instructs newsyslog to use
51.I config-file
52instead of /etc/athena/newsyslog.conf for its configuration file.
53.TP
54.B \-t \fIsleep
55tells newsyslog to sleep for the specified number of seconds after
56sending a signal to a process, in order to give it time to clean up.
57(The default is 1.)
58.TP
59.B \-v
60places
61.I newsyslog
62in verbose mode.  In this mode it will print out each log and its
63reasons for either trimming that log or skipping it.
64.TP
65.B \-n
66causes
67.I newsyslog
68not to trim the logs, but to print out what it would do if this option
69were not specified.
70.TP
71.B \-r
72removes the restriction that
73.I newsyslog
74must be running as root.  Of course,
75.I newsyslog
76will not be able to send a signal to the processes controlling
77the log files (such as
78.IR syslogd )
79if they were started by a different user, so this option is probably
80most useful in debugging.
81.SH FILES
82/etc/athena/newsyslog.conf
83.SH BUGS
84Doesn't yet automatically read the logs to find security breaches.
85.SH AUTHORS
86Newsyslog was written by Theodore Ts'o, MIT Project Athena.
87.br
88bert Dvornik, MIT IS/DCNS-Dev, added some new features.
89.br
90Copyright 1987,1995 Massachusetts Institute of Technology
91.SH "SEE ALSO"
92newsyslog.conf(5), syslogd(8), compress(1)
Note: See TracBrowser for help on using the repository browser.