Provide a `--pidfile' option in `fw'.
[fwd] / fw.1
diff --git a/fw.1 b/fw.1
index d6634f3..ebb1b66 100644 (file)
--- a/fw.1
+++ b/fw.1
@@ -99,7 +99,7 @@ fw \- port forwarder
 .SH SYNOPSIS
 .
 .B fw
-.RB [ \-dlq ]
+.RB [ \-dlpq ]
 .RB [ \-f
 .IR file ]
 .RB [ \-s
@@ -175,6 +175,15 @@ initializing properly.
 .B "\-l, \-\-syslog, \-\-log"
 Emit logging information to the system log, rather than standard error.
 .TP
+.B "\-p, \-\-pidfile=" file
+Write
+.BR fw 's
+process-id to
+.I file
+during start-up.  If
+.B \-d
+is given too, then the process-id is written after forking (obviously).
+.TP
 .B "\-q, \-\-quiet"
 Don't output any logging information.  This option is not recommended
 for normal use, although it can make system call traces clearer so I use