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>
This commit is contained in:
parent
5209eda863
commit
6c35119ac7
@ -11,7 +11,7 @@ SYNOPSIS
|
|||||||
'git-daemon' [--verbose] [--syslog] [--inetd | --port=n] [--export-all]
|
'git-daemon' [--verbose] [--syslog] [--inetd | --port=n] [--export-all]
|
||||||
[--timeout=n] [--init-timeout=n] [--strict-paths]
|
[--timeout=n] [--init-timeout=n] [--strict-paths]
|
||||||
[--base-path=path] [--user-path | --user-path=path]
|
[--base-path=path] [--user-path | --user-path=path]
|
||||||
[directory...]
|
[--reuseaddr] [--detach] [--pid-file=file] [directory...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
@ -82,6 +82,17 @@ OPTIONS
|
|||||||
--verbose::
|
--verbose::
|
||||||
Log details about the incoming connections and requested files.
|
Log details about the incoming connections and requested files.
|
||||||
|
|
||||||
|
--reuseaddr::
|
||||||
|
Use SO_REUSEADDR when binding the listening socket.
|
||||||
|
This allows the server to restart without waiting for
|
||||||
|
old connections to time out.
|
||||||
|
|
||||||
|
--detach::
|
||||||
|
Detach from the shell. Implies --syslog.
|
||||||
|
|
||||||
|
--pid-file=file::
|
||||||
|
Save the process id in 'file'.
|
||||||
|
|
||||||
<directory>::
|
<directory>::
|
||||||
A directory to add to the whitelist of allowed directories. Unless
|
A directory to add to the whitelist of allowed directories. Unless
|
||||||
--strict-paths is specified this will also include subdirectories
|
--strict-paths is specified this will also include subdirectories
|
||||||
|
2
daemon.c
2
daemon.c
@ -19,7 +19,7 @@ static const char daemon_usage[] =
|
|||||||
"git-daemon [--verbose] [--syslog] [--inetd | --port=n] [--export-all]\n"
|
"git-daemon [--verbose] [--syslog] [--inetd | --port=n] [--export-all]\n"
|
||||||
" [--timeout=n] [--init-timeout=n] [--strict-paths]\n"
|
" [--timeout=n] [--init-timeout=n] [--strict-paths]\n"
|
||||||
" [--base-path=path] [--user-path | --user-path=path]\n"
|
" [--base-path=path] [--user-path | --user-path=path]\n"
|
||||||
" [--reuseaddr] [directory...]";
|
" [--reuseaddr] [--detach] [--pid-file=file] [directory...]";
|
||||||
|
|
||||||
/* List of acceptable pathname prefixes */
|
/* List of acceptable pathname prefixes */
|
||||||
static char **ok_paths = NULL;
|
static char **ok_paths = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user