aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/savecore/savecore.8
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-16 23:06:12 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-16 23:06:12 +0000
commiteeff0b1b27b01cdde0e95df5ef87f0efd9b7f30a (patch)
tree5923feccaa8e51d3ba3874793bac4152ae060f62 /sbin/savecore/savecore.8
parent30f6c389ae7105d4678dc3a82dd5c3bb28d38366 (diff)
downloadsrc-eeff0b1b27b01cdde0e95df5ef87f0efd9b7f30a.tar.gz
src-eeff0b1b27b01cdde0e95df5ef87f0efd9b7f30a.zip
Implement -m option to savecore(8) that allows to limit number of kernel
dumps stored. Once the limit is reached it restarts from 0. Reviewed by: avg Obtained from: WHEEL Systems
Notes
Notes: svn path=/head/; revision=244320
Diffstat (limited to 'sbin/savecore/savecore.8')
-rw-r--r--sbin/savecore/savecore.811
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/savecore/savecore.8 b/sbin/savecore/savecore.8
index 3e22f5ad8ba9..c7d7e953682b 100644
--- a/sbin/savecore/savecore.8
+++ b/sbin/savecore/savecore.8
@@ -28,7 +28,7 @@
.\" From: @(#)savecore.8 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd December 14, 2012
+.Dd December 17, 2012
.Dt SAVECORE 8
.Os
.Sh NAME
@@ -45,6 +45,7 @@
.Op Ar device ...
.Nm
.Op Fl fkvz
+.Op Fl m Ar maxdumps
.Op Ar directory Op Ar device ...
.Sh DESCRIPTION
The
@@ -59,7 +60,7 @@ and enters a reboot message and information about the core dump into
the system log.
.Pp
The options are as follows:
-.Bl -tag -width indent
+.Bl -tag -width ".Fl m Ar maxdumps"
.It Fl C
Check to see if a dump exists,
and display a brief message to indicate the status.
@@ -77,6 +78,12 @@ Force a dump to be taken even if either the dump was cleared or if the
dump header information is inconsistent.
.It Fl k
Do not clear the dump after saving it.
+.It Fl m Ar maxdumps
+Maximum number of dumps to store.
+Once the number of stored dumps is equal to
+.Ar maxdumps
+the counter will restart from
+.Dv 0 .
.It Fl v
Print out some additional debugging information.
Specify twice for more information.