Prepare for 2.1.0.
[cascardo/ovs.git] / lib / daemon.man
1 .TP
2 \fB\-\-pidfile\fR[\fB=\fIpidfile\fR]
3 Causes a file (by default, \fB\*(PN.pid\fR) to be created indicating
4 the PID of the running process.  If the \fIpidfile\fR argument is not
5 specified, or
6 if it does not begin with \fB/\fR, then it is created in
7 \fB@RUNDIR@\fR.
8 .IP
9 If \fB\-\-pidfile\fR is not specified, no pidfile is created.
10 .
11 .TP
12 \fB\-\-overwrite\-pidfile\fR
13 By default, when \fB\-\-pidfile\fR is specified and the specified pidfile 
14 already exists and is locked by a running process, \fB\*(PN\fR refuses 
15 to start.  Specify \fB\-\-overwrite\-pidfile\fR to cause it to instead 
16 overwrite the pidfile.
17 .IP
18 When \fB\-\-pidfile\fR is not specified, this option has no effect.
19 .
20 .TP
21 \fB\-\-detach\fR
22 Causes \fB\*(PN\fR to detach itself from the foreground session and
23 run as a background process. \*(DD
24 .
25 .TP
26 \fB\-\-monitor\fR
27 Creates an additional process to monitor the \fB\*(PN\fR daemon.  If
28 the daemon dies due to a signal that indicates a programming error
29 (\fBSIGABRT\fR, \fBSIGALRM\fR, \fBSIGBUS\fR, \fBSIGFPE\fR,
30 \fBSIGILL\fR, \fBSIGPIPE\fR, \fBSIGSEGV\fR, \fBSIGXCPU\fR, or
31 \fBSIGXFSZ\fR) then the monitor process starts a new copy of it.  If
32 the daemon dies or exits for another reason, the monitor process exits.
33 .IP
34 This option is normally used with \fB\-\-detach\fR, but it also
35 functions without it.
36 .
37 .TP
38 \fB\-\-no\-chdir\fR
39 By default, when \fB\-\-detach\fR is specified, \fB\*(PN\fR 
40 changes its current working directory to the root directory after it 
41 detaches.  Otherwise, invoking \fB\*(PN\fR from a carelessly chosen 
42 directory would prevent the administrator from unmounting the file 
43 system that holds that directory.
44 .IP
45 Specifying \fB\-\-no\-chdir\fR suppresses this behavior, preventing
46 \fB\*(PN\fR from changing its current working directory.  This may be 
47 useful for collecting core files, since it is common behavior to write 
48 core dumps into the current working directory and the root directory 
49 is not a good directory to use.
50 .IP
51 This option has no effect when \fB\-\-detach\fR is not specified.