From 8fcce6450e9a864014f4e8c0f0c17baecb3820f9 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 25 Jun 2004 19:11:39 +0000 Subject: 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 --- usr.sbin/syslogc/syslogc.8 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr.sbin/syslogc/syslogc.8') 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 -- cgit v1.2.3