blob: da2f04fb8a1f16d62f005c2462a47f4b9cbf0425 [file] [log] [blame]
Brad Larsonaeb69182009-09-04 23:12:15 -05001daemon
2======
3
4NAME
5----
Shawn O. Pearcefa2486a2009-11-11 14:51:30 -08006daemon - Gerrit network server
Brad Larsonaeb69182009-09-04 23:12:15 -05007
8SYNOPSIS
9--------
10[verse]
Shawn O. Pearcefa2486a2009-11-11 14:51:30 -080011'java' -DGerritServer=PATH -jar gerrit.war 'daemon'
12 [\--enable-httpd | \--disable-httpd]
13 [\--enable-sshd | \--disable-sshd]
14 [\--slave]
Brad Larsonaeb69182009-09-04 23:12:15 -050015
16DESCRIPTION
17-----------
Shawn O. Pearcefa2486a2009-11-11 14:51:30 -080018Runs the Gerrit network daemon on the local system, configured as
19per the local copy of link:config-gerrit.html[gerrit.config].
Brad Larsonaeb69182009-09-04 23:12:15 -050020
21The path to gerrit.config is read from the metadata database,
22which requires that all slaves (and master) reading from the same
23database must place gerrit.config at the same location on the local
24filesystem. However, any option within gerrit.config, including
25link:config-gerrit.html#gerrit.basePath[gerrit.basePath] may be set
26to different values.
27
28OPTIONS
29-------
30
31-DGerritServer=PATH::
32 Path of the GerritServer.properties file, which describes
33 how to connect to the database. To obtain a template of this
34 file get it from the WAR:
35+
36====
37java -jar gerrit.war \--cat extra/GerritServer.properties_example >GerritServer.properties
38====
39
Shawn O. Pearcefa2486a2009-11-11 14:51:30 -080040\--enable-httpd::
41\--disable-httpd::
42 Enable (or disable) the internal HTTP daemon, answering
43 web requests. Enabled by default.
44
45\--enable-sshd::
46\--disable-sshd::
47 Enable (or disable) the internal SSH daemon, answering SSH
48 clients and remotely executed commands. Enabled by default.
49
Brad Larsonaeb69182009-09-04 23:12:15 -050050\--slave::
51 Run in slave mode, permitting only read operations
52 by clients. Commands which modify state such as
53 link:cmd-receive-pack.html[recieve-pack] (creates new changes
54 or updates existing ones) or link:cmd-approve.html[approve]
55 (sets approve marks) are disabled.
Shawn O. Pearcefa2486a2009-11-11 14:51:30 -080056+
57This option automatically implies '\--disable-httpd \--enable-sshd'.
Brad Larsonaeb69182009-09-04 23:12:15 -050058
59CONTEXT
60-------
61This command can only be run on a server which has direct
62connectivity to the metadata database, and local access to the
63managed Git repositories.
64
65KNOWN ISSUES
66------------
67Slave daemon caches can quickly become out of date when modifications
68are made on the master. The following configuration is suggested in
69a slave to reduce the maxAge for each cache entry, so that changes
70are recognized in a reasonable period of time:
71
72----
73[cache "accounts"]
74 maxAge = 5 min
75[cache "accounts_byemail"]
76 maxAge = 5 min
77[cache "diff"]
78 maxAge = 5 min
79[cache "groups"]
80 maxAge = 5 min
81[cache "projects"]
82 maxAge = 5 min
83[cache "sshkeys"]
84 maxAge = 5 min
85----
86
87and if LDAP support was enabled, also include:
88----
89[cache "ldap_groups"]
90 maxAge = 5 min
91[cache "ldap_usernames"]
92 maxAge = 5 min
93----
94
95Automatic cache coherency between master and slave systems is
96planned to be implemented in a future version.
97
98GERRIT
99------
100Part of link:index.html[Gerrit Code Review]