]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: add description of pidfile in master-worker mode
authorMIZUTA Takeshi <mizuta.takeshi@fujitsu.com>
Wed, 26 Aug 2020 04:46:19 +0000 (13:46 +0900)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 26 Aug 2020 16:40:53 +0000 (18:40 +0200)
Previously, pidfile was only described for daemon mode. In the case of
master-worker mode, the handling of pidfile is different from daemon mode,
so the description has been added.

doc/configuration.txt
doc/haproxy.1

index ca2880673718e3cc44249e0d1e688304e59211c9..83fb85a56788e9897aa2186088df1790900f5d06 100644 (file)
@@ -1199,9 +1199,10 @@ nbthread <number>
   value is reported in the output of "haproxy -vv". See also "nbproc".
 
 pidfile <pidfile>
-  Writes PIDs of all daemons into file <pidfile>. This option is equivalent to
-  the "-p" command line argument. The file must be accessible to the user
-  starting the process. See also "daemon".
+  Writes PIDs of all daemons into file <pidfile> when daemon mode or writes PID
+  of master process into file <pidfile> when master-worker mode. This option is
+  equivalent to the "-p" command line argument. The file must be accessible to
+  the user starting the process. See also "daemon" and "master-worker".
 
 pp2-never-send-local
   A bug in the PROXY protocol v2 implementation was present in HAProxy up to
index 7554f9d9f80861a5e1cbf40e6534a38de455e4b8..4c2d78677d7f8971b4a0c94b6e7d349991da4999 100644 (file)
@@ -105,7 +105,8 @@ exits with code 1 if a syntax error was found.
 .TP
 \fB\-p <pidfile>\fP
 Ask the process to write down each of its children's pids to this file
-in daemon mode.
+in daemon mode or ask the process to write down its master's pid to
+this file in master-worker mode.
 
 .TP
 \fB\-dk\fP