diff options
author | pjd <pjd@FreeBSD.org> | 2012-12-16 23:06:12 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-12-16 23:06:12 +0000 |
commit | c5cbd42d14b9d344c2cfe474407c43ddfbc75995 (patch) | |
tree | 5923feccaa8e51d3ba3874793bac4152ae060f62 /sbin/savecore/savecore.8 | |
parent | f3f8bbc49800ecc3f3414633a1a66235d04e949d (diff) | |
download | FreeBSD-src-c5cbd42d14b9d344c2cfe474407c43ddfbc75995.zip FreeBSD-src-c5cbd42d14b9d344c2cfe474407c43ddfbc75995.tar.gz |
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
Diffstat (limited to 'sbin/savecore/savecore.8')
-rw-r--r-- | sbin/savecore/savecore.8 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sbin/savecore/savecore.8 b/sbin/savecore/savecore.8 index 3e22f5a..c7d7e95 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. |