Reported-by: "P.R.Dinesh" <[email protected]>
Reported-at: http://openvswitch.org/pipermail/discuss/2015-December/019567.html
Signed-off-by: Ben Pfaff <[email protected]>
---
 lib/daemon.man | 11 +++++++----
 lib/vlog.man   |  4 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/lib/daemon.man b/lib/daemon.man
index ff0b157..78469cd 100644
--- a/lib/daemon.man
+++ b/lib/daemon.man
@@ -18,10 +18,13 @@ overwrite the pidfile.
 .IP
 When \fB\-\-pidfile\fR is not specified, this option has no effect.
 .
-.TP
-\fB\-\-detach\fR
-Causes \fB\*(PN\fR to detach itself from the foreground session and
-run as a background process. \*(DD
+.IP \fB\-\-detach\fR
+Runs \fB\*(PN\fR as a background process.  The process forks, and in
+the child it starts a new session, closes the standard file
+descriptors (which has the side effect of disabling logging to the
+console), and changes its current directory to the root (unless
+\fB\-\-no\-chdir\fR is specified).  After the child completes its
+initialization, the parent exits.  \*(DD
 .
 .TP
 \fB\-\-monitor\fR
diff --git a/lib/vlog.man b/lib/vlog.man
index 6994eec..674528d 100644
--- a/lib/vlog.man
+++ b/lib/vlog.man
@@ -20,7 +20,9 @@ module.
 .IP \(bu
 \fBsyslog\fR, \fBconsole\fR, or \fBfile\fR, to limit the log level
 change to only to the system log, to the console, or to a file,
-respectively.
+respectively.  (If \fB\-\-detach\fR is specified, \fB\*(PN\fR closes
+its standard file descriptors, so logging to the console will have no
+effect.)
 .IP
 On Windows platform, \fBsyslog\fR is accepted as a word and is only
 useful along with the \fB\-\-syslog\-target\fR option (the word has no
-- 
2.1.3

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to