summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-03-01 20:34:10 +0000
committeraaron <aaron@openbsd.org>2001-03-01 20:34:10 +0000
commit72a69dde0f1dc9bc3e47e06bdaa081d34ad0c55e (patch)
tree906df910221fd186ed00fde573150300db1d7725
parentSync usage() with man page; mpech@prosoft.org.lv (diff)
downloadwireguard-openbsd-72a69dde0f1dc9bc3e47e06bdaa081d34ad0c55e.tar.xz
wireguard-openbsd-72a69dde0f1dc9bc3e47e06bdaa081d34ad0c55e.zip
Remove -t option from getopt() since it doesn't exist; mpech@prosoft.org.lv.
Also rearrage options in the man page while I'm here.
-rw-r--r--usr.bin/newsyslog/newsyslog.841
-rw-r--r--usr.bin/newsyslog/newsyslog.c8
2 files changed, 24 insertions, 25 deletions
diff --git a/usr.bin/newsyslog/newsyslog.8 b/usr.bin/newsyslog/newsyslog.8
index 793942d7808..a3a0506db25 100644
--- a/usr.bin/newsyslog/newsyslog.8
+++ b/usr.bin/newsyslog/newsyslog.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: newsyslog.8,v 1.19 2000/06/02 19:39:33 millert Exp $
+.\" $OpenBSD: newsyslog.8,v 1.20 2001/03/01 20:34:10 aaron Exp $
.\"
.\" Copyright (c) 1997, Jason Downs. All rights reserved.
.\"
@@ -56,8 +56,8 @@
.Nd maintain system log files to manageable sizes
.Sh SYNOPSIS
.Nm newsyslog
-.Op Fl vmnr
-.Op Fl f Ar configuration file
+.Op Fl mnrv
+.Op Fl f Ar config_file
.Sh DESCRIPTION
.Nm
is a program that should be scheduled to run periodically by
@@ -75,21 +75,16 @@ the last period's logs in it,
has the next to last
period's logs in it, and so on, up to a user-specified number of
archived logs.
-Optionally the archived logs can be compressed to save
-space.
+Optionally the archived logs can be compressed to save space.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl f Ar config-file
-Use
-.Ar config-file
-instead of
-.Pa /etc/newsyslog.conf
-for the configuration file.
-.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 m
+Monitoring mode; only entries marked with an
+.Sq M
+in flags are processed,
+and notifications sent if any have changed.
+Without this option, monitored entries are not processed.
.It Fl n
Do not trim the logs, but instead print out what would be done if this option
were not specified.
@@ -104,12 +99,16 @@ will not be able to send a
signal to
.Xr syslogd 8 ,
so this option should only be used in debugging.
-.It Fl m
-Monitoring mode; only entries marked with an
-.Sq M
-in flags are processed,
-and notifications sent if any have changed.
-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 f Ar config_file
+Use
+.Ar config_file
+instead of
+.Pa /etc/newsyslog.conf
+for the configuration file.
.El
.Pp
A log can be archived because of two reasons.
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c
index 81c8d84b567..058ec397f0a 100644
--- a/usr.bin/newsyslog/newsyslog.c
+++ b/usr.bin/newsyslog/newsyslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newsyslog.c,v 1.35 2001/01/12 16:24:06 deraadt Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.36 2001/03/01 20:34:10 aaron Exp $ */
/*
* Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -88,7 +88,7 @@ provided "as is" without express or implied warranty.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.35 2001/01/12 16:24:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.36 2001/03/01 20:34:10 aaron Exp $";
#endif /* not lint */
#ifndef CONF
@@ -361,7 +361,7 @@ PRS(argc, argv)
*p = '\0';
optind = 1; /* Start options parsing */
- while ((c = getopt(argc, argv, "nrvmf:t:")) != -1) {
+ while ((c = getopt(argc, argv, "nrvmf:")) != -1) {
switch (c) {
case 'n':
noaction++; /* This implies needroot as off */
@@ -389,7 +389,7 @@ usage()
{
extern const char *__progname;
- (void)fprintf(stderr, "usage: %s [-nrvm] [-f config-file]\n",
+ (void)fprintf(stderr, "usage: %s [-mnrv] [-f config_file]\n",
__progname);
exit(1);
}