Brad Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 1 | daemon |
| 2 | ====== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame^] | 6 | daemon - Gerrit network server |
Brad Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame^] | 11 | 'java' -DGerritServer=PATH -jar gerrit.war 'daemon' |
| 12 | [\--enable-httpd | \--disable-httpd] |
| 13 | [\--enable-sshd | \--disable-sshd] |
| 14 | [\--slave] |
Brad Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 15 | |
| 16 | DESCRIPTION |
| 17 | ----------- |
Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame^] | 18 | Runs the Gerrit network daemon on the local system, configured as |
| 19 | per the local copy of link:config-gerrit.html[gerrit.config]. |
Brad Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 20 | |
| 21 | The path to gerrit.config is read from the metadata database, |
| 22 | which requires that all slaves (and master) reading from the same |
| 23 | database must place gerrit.config at the same location on the local |
| 24 | filesystem. However, any option within gerrit.config, including |
| 25 | link:config-gerrit.html#gerrit.basePath[gerrit.basePath] may be set |
| 26 | to different values. |
| 27 | |
| 28 | OPTIONS |
| 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 | ==== |
| 37 | java -jar gerrit.war \--cat extra/GerritServer.properties_example >GerritServer.properties |
| 38 | ==== |
| 39 | |
Shawn O. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame^] | 40 | \--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 Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 50 | \--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. Pearce | fa2486a | 2009-11-11 14:51:30 -0800 | [diff] [blame^] | 56 | + |
| 57 | This option automatically implies '\--disable-httpd \--enable-sshd'. |
Brad Larson | aeb6918 | 2009-09-04 23:12:15 -0500 | [diff] [blame] | 58 | |
| 59 | CONTEXT |
| 60 | ------- |
| 61 | This command can only be run on a server which has direct |
| 62 | connectivity to the metadata database, and local access to the |
| 63 | managed Git repositories. |
| 64 | |
| 65 | KNOWN ISSUES |
| 66 | ------------ |
| 67 | Slave daemon caches can quickly become out of date when modifications |
| 68 | are made on the master. The following configuration is suggested in |
| 69 | a slave to reduce the maxAge for each cache entry, so that changes |
| 70 | are 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 | |
| 87 | and 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 | |
| 95 | Automatic cache coherency between master and slave systems is |
| 96 | planned to be implemented in a future version. |
| 97 | |
| 98 | GERRIT |
| 99 | ------ |
| 100 | Part of link:index.html[Gerrit Code Review] |