daemon: documentation for --reuseaddr, --detach and --pid-file
Signed-off-by: Matthias Lederhofer <matled@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Matthias Lederhofer committed
Jul 14, 2006 at 17:53 UTC
6c35119ac711c69c69874d7d52f5cfa12c07ccce
2 files changed
+13
-2
Documentation/git-daemon.txt
+12
-1
@@ -11,7 +11,7 @@ SYNOPSIS
11
'git-daemon' [--verbose] [--syslog] [--inetd | --port=n] [--export-all]
12
[--timeout=n] [--init-timeout=n] [--strict-paths]
13
[--base-path=path] [--user-path | --user-path=path]
14
- [directory...]
14
+ [--reuseaddr] [--detach] [--pid-file=file] [directory...]
15
16
DESCRIPTION
17
-----------
@@ -82,6 +82,17 @@ OPTIONS
82
--verbose::
83
Log details about the incoming connections and requested files.
84
85
+--reuseaddr::
86
+ Use SO_REUSEADDR when binding the listening socket.
87
+ This allows the server to restart without waiting for
88
+ old connections to time out.
89
+
90
+--detach::
91
+ Detach from the shell. Implies --syslog.
92
+
93
+--pid-file=file::
94
+ Save the process id in 'file'.
95
+
96
<directory>::
97
A directory to add to the whitelist of allowed directories. Unless
98
--strict-paths is specified this will also include subdirectories
daemon.c
+1
-1
@@ -19,7 +19,7 @@ static const char daemon_usage[] =
19
"git-daemon [--verbose] [--syslog] [--inetd | --port=n] [--export-all]\n"
20
" [--timeout=n] [--init-timeout=n] [--strict-paths]\n"
21
" [--base-path=path] [--user-path | --user-path=path]\n"
22
-" [--reuseaddr] [directory...]";
22
+" [--reuseaddr] [--detach] [--pid-file=file] [directory...]";
23
24
/* List of acceptable pathname prefixes */
25
static char **ok_paths = NULL;