daemon: Add support for process monitoring and restart.
[sliver-openvswitch.git] / lib / daemon.man
index ea0561d..c239377 100644 (file)
@@ -19,6 +19,17 @@ When \fB--pidfile\fR is not specified, this option has no effect.
 Causes \fB\*(PN\fR to detach itself from the foreground session and
 run as a background process.
 
+.TP
+\fB--monitor\fR
+Creates an additional process to monitor the \fB\*(PN\fR daemon.  If
+the daemon dies due to a signal that indicates a programming error
+(e.g. \fBSIGSEGV\fR, \fBSIGABRT\fR), then the monitor process starts a
+new copy of it.  If the daemon die or exits for another reason, the
+monitor process exits.
+.IP
+This option is normally used with \fB--detach\fR, but it also
+functions without it.
+
 .TP
 \fB--no-chdir\fR
 By default, when \fB--detach\fR is specified, \fB\*(PN\fR