summaryrefslogtreecommitdiff
path: root/mdmon.8
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-02-05 15:57:09 +1100
committerNeilBrown <neilb@suse.de>2013-02-05 15:57:09 +1100
commit030419821fb77f9955f2017b4a6d3d8139d6db25 (patch)
tree4654d51c0449c1b83043faea24d7209a55df403e /mdmon.8
parent15c10423aa9435ed72bd292fecca69224a20fdc8 (diff)
mdmon: add --foreground option
While not strictly necessary for systemd, it is cleaner to avoid forking when running from a management daemon. So add a --foreground option to mdmon. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.8')
-rw-r--r--mdmon.810
1 files changed, 9 insertions, 1 deletions
diff --git a/mdmon.8 b/mdmon.8
index 559dd903..a968cdb0 100644
--- a/mdmon.8
+++ b/mdmon.8
@@ -5,7 +5,7 @@ mdmon \- monitor MD external metadata arrays
.SH SYNOPSIS
-.BI mdmon " [--all] [--takeover] CONTAINER"
+.BI mdmon " [--all] [--takeover] [--foreground] CONTAINER"
.SH OVERVIEW
The 2.6.27 kernel brings the ability to support external metadata arrays.
@@ -131,6 +131,14 @@ The
device to monitor. It can be a full path like /dev/md/container, or a
simple md device name like md127.
.TP
+.B \-\-foreground
+Normally,
+.I mdmon
+will fork and continue in the background. Adding this option will
+skip that step and run
+.I mdmon
+in the foreground.
+.TP
.B \-\-takeover
This instructs
.I mdmon