summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-01-17 07:44:44 +0000
committerru <ru@FreeBSD.org>2005-01-17 07:44:44 +0000
commit6cc4b6c220d4e49fad2881c7dc754fa560248ef8 (patch)
treef5a5fbfda9358c31fa2746d0671fe366bb17d243 /sbin
parent63a9efe25ce06fd299e33aba75e3dd445d67484c (diff)
downloadFreeBSD-src-6cc4b6c220d4e49fad2881c7dc754fa560248ef8.zip
FreeBSD-src-6cc4b6c220d4e49fad2881c7dc754fa560248ef8.tar.gz
Added the EXIT STATUS section where appropriate.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dump/dump.82
-rw-r--r--sbin/fsck_ffs/fsck_ffs.84
-rw-r--r--sbin/geom/class/concat/gconcat.82
-rw-r--r--sbin/geom/class/label/glabel.82
-rw-r--r--sbin/geom/class/mirror/gmirror.82
-rw-r--r--sbin/geom/class/nop/gnop.82
-rw-r--r--sbin/geom/class/raid3/graid3.82
-rw-r--r--sbin/geom/class/shsec/gshsec.82
-rw-r--r--sbin/geom/class/stripe/gstripe.82
-rw-r--r--sbin/geom/core/geom.82
-rw-r--r--sbin/ggate/ggatec/ggatec.82
-rw-r--r--sbin/ggate/ggated/ggated.82
-rw-r--r--sbin/ggate/ggatel/ggatel.82
-rw-r--r--sbin/kldconfig/kldconfig.87
-rw-r--r--sbin/kldload/kldload.82
-rw-r--r--sbin/kldstat/kldstat.87
-rw-r--r--sbin/kldunload/kldunload.87
-rw-r--r--sbin/md5/md5.12
-rw-r--r--sbin/newfs_msdos/newfs_msdos.82
-rw-r--r--sbin/nfsiod/nfsiod.82
-rw-r--r--sbin/ping6/ping6.82
-rw-r--r--sbin/route/route.82
-rw-r--r--sbin/setkey/setkey.82
23 files changed, 27 insertions, 36 deletions
diff --git a/sbin/dump/dump.8 b/sbin/dump/dump.8
index ea35653..b7be5ef 100644
--- a/sbin/dump/dump.8
+++ b/sbin/dump/dump.8
@@ -471,7 +471,7 @@ to find group
.Xr rmt 8
.Sh DIAGNOSTICS
Many, and verbose.
-.Pp
+.Sh EXIT STATUS
Dump exits with zero status on success.
Startup errors are indicated with an exit code of 1;
abnormal termination is indicated with an exit code of 3.
diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8
index 4bfa11c..26c47bf 100644
--- a/sbin/fsck_ffs/fsck_ffs.8
+++ b/sbin/fsck_ffs/fsck_ffs.8
@@ -299,9 +299,9 @@ If there is insufficient space its size is increased.
.It Pa /etc/fstab
contains default list of file systems to check.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
-.Pp
+.Sh DIAGNOSTICS
The diagnostics produced by
.Nm
are fully enumerated and explained in Appendix A of
diff --git a/sbin/geom/class/concat/gconcat.8 b/sbin/geom/class/concat/gconcat.8
index 6532e26..4e729a2 100644
--- a/sbin/geom/class/concat/gconcat.8
+++ b/sbin/geom/class/concat/gconcat.8
@@ -165,7 +165,7 @@ umount /mnt
gconcat stop data
gconcat unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/label/glabel.8 b/sbin/geom/class/label/glabel.8
index 0b10344..0fb4d95 100644
--- a/sbin/geom/class/label/glabel.8
+++ b/sbin/geom/class/label/glabel.8
@@ -197,7 +197,7 @@ The next example shows how to set up a label for a UFS file system:
tunefs -L data /dev/da4s1a
mount /dev/ufs/data /mnt/data
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/mirror/gmirror.8 b/sbin/geom/class/mirror/gmirror.8
index 33212bf..350df8e 100644
--- a/sbin/geom/class/mirror/gmirror.8
+++ b/sbin/geom/class/mirror/gmirror.8
@@ -268,7 +268,7 @@ gmirror deactivate data da1
dd if=/dev/da1 of=/backup/data.img bs=1m
gmirror activate data da1
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/nop/gnop.8 b/sbin/geom/class/nop/gnop.8
index 99b15d4..dfa209c 100644
--- a/sbin/geom/class/nop/gnop.8
+++ b/sbin/geom/class/nop/gnop.8
@@ -136,7 +136,7 @@ with 50% failure probability, and how to destroy it.
gnop create -v -f 50 da0
gnop destroy -v da0.nop
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/raid3/graid3.8 b/sbin/geom/class/raid3/graid3.8
index c0b0dd4..16669fe 100644
--- a/sbin/geom/class/raid3/graid3.8
+++ b/sbin/geom/class/raid3/graid3.8
@@ -217,7 +217,7 @@ Replace one data disk with a brand new one:
graid3 remove -n 0 data
graid3 insert -n 0 data da5
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/shsec/gshsec.8 b/sbin/geom/class/shsec/gshsec.8
index 092e6e8d..14e8a46 100644
--- a/sbin/geom/class/shsec/gshsec.8
+++ b/sbin/geom/class/shsec/gshsec.8
@@ -113,7 +113,7 @@ From now on, when USB Pen drive will be inserted, it will be automatically
detected and connected making secret available via
.Pa /dev/shsec/secret
device.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/geom/class/stripe/gstripe.8 b/sbin/geom/class/stripe/gstripe.8
index 107e8cc..9e6b720 100644
--- a/sbin/geom/class/stripe/gstripe.8
+++ b/sbin/geom/class/stripe/gstripe.8
@@ -204,7 +204,7 @@ umount /mnt
gstripe stop data
gstripe unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh COMPATIBILITY
The
diff --git a/sbin/geom/core/geom.8 b/sbin/geom/core/geom.8
index f6fda36..2ac8d413 100644
--- a/sbin/geom/core/geom.8
+++ b/sbin/geom/core/geom.8
@@ -112,7 +112,7 @@ Unload a kernel module which implements the MD class:
.Bd -literal -offset indent
geom md unload
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
.Sh SEE ALSO
.Xr geom 4 ,
diff --git a/sbin/ggate/ggatec/ggatec.8 b/sbin/ggate/ggatec/ggatec.8
index 22038e8..52c2cd5 100644
--- a/sbin/ggate/ggatec/ggatec.8
+++ b/sbin/ggate/ggatec/ggatec.8
@@ -161,7 +161,7 @@ client# ggatec create -o ro server /dev/acd0
ggate0
client# mount_cd9660 /dev/ggate0 /cdrom
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/ggate/ggated/ggated.8 b/sbin/ggate/ggated/ggated.8
index 0b774ad..c1fd976 100644
--- a/sbin/ggate/ggated/ggated.8
+++ b/sbin/ggate/ggated/ggated.8
@@ -93,7 +93,7 @@ Export CD-ROM device and a file:
# echo "client RW /image" >> /etc/gg.exports
# ggated
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/ggate/ggatel/ggatel.8 b/sbin/ggate/ggatel/ggatel.8
index f08edee..b28abbb 100644
--- a/sbin/ggate/ggatel/ggatel.8
+++ b/sbin/ggate/ggatel/ggatel.8
@@ -139,7 +139,7 @@ umount /secret
gbde detach ggate5
ggatel destroy -u 5
.Ed
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success, or 1 if the command fails.
To get details about the failure,
.Nm
diff --git a/sbin/kldconfig/kldconfig.8 b/sbin/kldconfig/kldconfig.8
index 65766ec..191f4ad 100644
--- a/sbin/kldconfig/kldconfig.8
+++ b/sbin/kldconfig/kldconfig.8
@@ -93,11 +93,8 @@ flag is specified more than once, the old path is displayed as well.
.It Pa /boot/kernel , /boot/modules , /modules
The default module search path used by the kernel.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldload 2 ,
.Xr kldload 8 ,
diff --git a/sbin/kldload/kldload.8 b/sbin/kldload/kldload.8
index dd28d38..b58207e 100644
--- a/sbin/kldload/kldload.8
+++ b/sbin/kldload/kldload.8
@@ -56,7 +56,7 @@ directory containing loadable modules.
Modules must have an extension of
.Pa .ko .
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh AUTOMATICALLY LOADING MODULES
Some modules (ipfw, ipf, etc.) may be automatically loaded at boot
diff --git a/sbin/kldstat/kldstat.8 b/sbin/kldstat/kldstat.8
index bbabb73..77d933d 100644
--- a/sbin/kldstat/kldstat.8
+++ b/sbin/kldstat/kldstat.8
@@ -51,11 +51,8 @@ Display the status of only the file with this ID.
.It Fl n Ar name
Display the status of only the file with this name.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldstat 2 ,
.Xr kldload 8 ,
diff --git a/sbin/kldunload/kldunload.8 b/sbin/kldunload/kldunload.8
index 4246f0b..7bd7303 100644
--- a/sbin/kldunload/kldunload.8
+++ b/sbin/kldunload/kldunload.8
@@ -61,11 +61,8 @@ Unload the file with this name.
.It Ar name
Unload the file with this name.
.El
-.Sh DIAGNOSTICS
-The
-.Nm
-utility exits with a status of 0 on success
-and with a nonzero status if an error occurs.
+.Sh EXIT STATUS
+.Ex -std
.Sh SEE ALSO
.Xr kldunload 2 ,
.Xr kldload 8 ,
diff --git a/sbin/md5/md5.1 b/sbin/md5/md5.1
index 67daaa2..8b36e1f 100644
--- a/sbin/md5/md5.1
+++ b/sbin/md5/md5.1
@@ -82,7 +82,7 @@ Run a built-in time trial.
.It Fl x
Run a built-in test script.
.El
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm md5 , sha1
and
diff --git a/sbin/newfs_msdos/newfs_msdos.8 b/sbin/newfs_msdos/newfs_msdos.8
index b4189a5..9c6e002 100644
--- a/sbin/newfs_msdos/newfs_msdos.8
+++ b/sbin/newfs_msdos/newfs_msdos.8
@@ -182,7 +182,7 @@ on
.Xr disklabel 8 ,
.Xr fdisk 8 ,
.Xr newfs 8
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
Exit status is 0 on success and 1 on error.
.Sh HISTORY
The
diff --git a/sbin/nfsiod/nfsiod.8 b/sbin/nfsiod/nfsiod.8
index 126c5f7..44bf1af 100644
--- a/sbin/nfsiod/nfsiod.8
+++ b/sbin/nfsiod/nfsiod.8
@@ -71,7 +71,7 @@ If this fails, or no
KLD was available,
.Nm
exits with an error.
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.Xr nfsstat 1 ,
diff --git a/sbin/ping6/ping6.8 b/sbin/ping6/ping6.8
index c2b24e4..de70c47 100644
--- a/sbin/ping6/ping6.8
+++ b/sbin/ping6/ping6.8
@@ -403,7 +403,7 @@ using the
.Fl p
option of
.Nm .
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
The
.Nm
utility returns 0 on success (the host is alive),
diff --git a/sbin/route/route.8 b/sbin/route/route.8
index 4220acb..45ffd19 100644
--- a/sbin/route/route.8
+++ b/sbin/route/route.8
@@ -393,7 +393,7 @@ operation resulted in a route whose gateway uses the
same route as the one being changed.
The next-hop gateway should be reachable through a different route.
.El
-.Pp
+.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO
.\".Xr esis 4 ,
diff --git a/sbin/setkey/setkey.8 b/sbin/setkey/setkey.8
index 380aaa5..427833f 100644
--- a/sbin/setkey/setkey.8
+++ b/sbin/setkey/setkey.8
@@ -633,7 +633,7 @@ algorithm comment
deflate rfc2394
.Ed
.\"
-.Sh DIAGNOSTICS
+.Sh EXIT STATUS
.Ex -std
.\"
.Sh EXAMPLES
OpenPOWER on IntegriCloud