summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogc/syslogc.8
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2004-06-25 19:11:38 +0000
committerdjm <djm@openbsd.org>2004-06-25 19:11:38 +0000
commit5b27f6176eca0ef8066a6d4eb65362ceed3f3ed7 (patch)
treed8a58d733bb9cbe42039f68c9ce5916da0c513fe /usr.sbin/syslogc/syslogc.8
parentextend memory buffer control protocol to support transmission of flags, (diff)
downloadwireguard-openbsd-5b27f6176eca0ef8066a6d4eb65362ceed3f3ed7.tar.xz
wireguard-openbsd-5b27f6176eca0ef8066a6d4eb65362ceed3f3ed7.zip
support new syslogd control protocol and add new -o option to detect memory
buffer overflow; idea & ok markus@ NB if you are using memory buffered logging make sure you update both syslogd and syslogc _and_ restart syslogd because the protocol has changed
Diffstat (limited to 'usr.sbin/syslogc/syslogc.8')
-rw-r--r--usr.sbin/syslogc/syslogc.89
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/syslogc/syslogc.8 b/usr.sbin/syslogc/syslogc.8
index 2d8972a50d8..037697359f5 100644
--- a/usr.sbin/syslogc/syslogc.8
+++ b/usr.sbin/syslogc/syslogc.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: syslogc.8,v 1.1 2004/01/04 08:30:21 djm Exp $
+.\" $OpenBSD: syslogc.8,v 1.2 2004/06/25 19:11:38 djm Exp $
.\"
.\" Copyright (c) 2004 Damien Miller
.\"
@@ -21,7 +21,7 @@
.Nd collect messages from syslog memory buffer
.Sh SYNOPSIS
.Nm syslogc
-.Op Fl Ccq
+.Op Fl Ccoq
.Op Fl s Ar reporting_socket
.Ar logname
.Nm syslogc
@@ -59,6 +59,11 @@ The options are as follows:
Request that the log buffer be cleared without reading it.
.It Fl c
Request that the log buffer be cleared once it has been read.
+.It Fl o
+Check whether the specified log has overflowed.
+If the log has overflowed, then a message will be printed to
+.Xr stdout 4
+and the exit status will be set to 1.
.It Fl q
Request a list of available logs.
.It Fl s Ar reporting_socket