aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/savecore/savecore.8
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2003-09-04 10:07:01 +0000
committerDoug Barton <dougb@FreeBSD.org>2003-09-04 10:07:01 +0000
commit628d16a38876116fa080639a4ea18721cbceadad (patch)
tree331b17dab23808bef2db1a9cff5cda15a4366424 /sbin/savecore/savecore.8
parentcfd27829768e065c11e7ffce04737bec28e4039e (diff)
downloadsrc-628d16a38876116fa080639a4ea18721cbceadad.tar.gz
src-628d16a38876116fa080639a4ea18721cbceadad.zip
Add a flag that reports the existence of a dump, and does nothing else.
The immediate purpose for this option is to use it in rc.d so that we can make savecore behavior conditional. Tremendous assistance with ideas and sanity checking provided by tjr and b@etek.chalmers.se.
Notes
Notes: svn path=/head/; revision=119734
Diffstat (limited to 'sbin/savecore/savecore.8')
-rw-r--r--sbin/savecore/savecore.812
1 files changed, 12 insertions, 0 deletions
diff --git a/sbin/savecore/savecore.8 b/sbin/savecore/savecore.8
index 5ec87990f62b..cd8518b9693c 100644
--- a/sbin/savecore/savecore.8
+++ b/sbin/savecore/savecore.8
@@ -42,6 +42,10 @@
.Nm
.Fl c
.Nm
+.Fl C
+.Op Fl v
+.Op Ar directory device
+.Nm
.Op Fl fkvz
.Op Ar directory Op Ar device ...
.Sh DESCRIPTION
@@ -58,6 +62,14 @@ the system log.
.Pp
The options are as follows:
.Bl -tag -width indent
+.It Fl C
+Check to see if a dump exists,
+and display a brief message to indicate the status.
+An exit status of 0 indicates that a dump is there,
+1 indicates that none exists.
+This option is compatible only with the
+.Op Fl v
+option.
.It Fl c
Clear the dump, so that future invocations of
.Nm