version 1.19, 2000/06/02 19:39:33 |
version 1.20, 2001/03/01 20:34:10 |
|
|
.Nd maintain system log files to manageable sizes |
.Nd maintain system log files to manageable sizes |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm newsyslog |
.Nm newsyslog |
.Op Fl vmnr |
.Op Fl mnrv |
.Op Fl f Ar configuration file |
.Op Fl f Ar config_file |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
is a program that should be scheduled to run periodically by |
is a program that should be scheduled to run periodically by |
|
|
has the next to last |
has the next to last |
period's logs in it, and so on, up to a user-specified number of |
period's logs in it, and so on, up to a user-specified number of |
archived logs. |
archived logs. |
Optionally the archived logs can be compressed to save |
Optionally the archived logs can be compressed to save space. |
space. |
|
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Fl f Ar config-file |
.It Fl m |
Use |
Monitoring mode; only entries marked with an |
.Ar config-file |
.Sq M |
instead of |
in flags are processed, |
.Pa /etc/newsyslog.conf |
and notifications sent if any have changed. |
for the configuration file. |
Without this option, monitored entries are not processed. |
.It Fl v |
|
Be verbose. |
|
In this mode it will print out each log and its |
|
reasons for either trimming that log or skipping it. |
|
.It Fl n |
.It Fl n |
Do not trim the logs, but instead print out what would be done if this option |
Do not trim the logs, but instead print out what would be done if this option |
were not specified. |
were not specified. |
|
|
signal to |
signal to |
.Xr syslogd 8 , |
.Xr syslogd 8 , |
so this option should only be used in debugging. |
so this option should only be used in debugging. |
.It Fl m |
.It Fl v |
Monitoring mode; only entries marked with an |
Be verbose. |
.Sq M |
In this mode it will print out each log and its |
in flags are processed, |
reasons for either trimming that log or skipping it. |
and notifications sent if any have changed. |
.It Fl f Ar config_file |
Without this option, monitored entries are not processed. |
Use |
|
.Ar config_file |
|
instead of |
|
.Pa /etc/newsyslog.conf |
|
for the configuration file. |
.El |
.El |
.Pp |
.Pp |
A log can be archived because of two reasons. |
A log can be archived because of two reasons. |