Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 1 | init |
| 2 | ==== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | init - Initialize a new Gerrit server installation |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| 11 | 'java' -jar gerrit.war 'init' |
| 12 | -d <SITE_PATH> |
| 13 | [\--batch] |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 14 | [\--no-auto-start] |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 15 | |
| 16 | DESCRIPTION |
| 17 | ----------- |
| 18 | Creates a new Gerrit server installation, interactively prompting |
| 19 | for some basic setup prior to writing default configuration files |
| 20 | into a newly created `$site_path`. |
| 21 | |
| 22 | If run an an existing `$site_path`, init will upgrade some resources |
Shawn O. Pearce | 89cefce | 2010-12-08 18:30:43 -0800 | [diff] [blame] | 23 | as necessary. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 24 | |
| 25 | OPTIONS |
| 26 | ------- |
| 27 | \--batch:: |
| 28 | Run in batch mode, skipping interactive prompts. Reasonable |
| 29 | configuration defaults are chosen based on the whims of |
| 30 | the Gerrit developers. |
Edwin Kempin | 1cd6909 | 2012-04-27 14:01:26 +0200 | [diff] [blame] | 31 | + |
| 32 | If during a schema migration unused objects (e.g. tables, columns) |
| 33 | are detected they are *not* automatically dropped, but only a list of |
| 34 | SQL statements to drop these objects is provided. To drop the unused |
| 35 | objects these SQL statements have to be executed manually. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 36 | |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 37 | \--no-auto-start:: |
| 38 | Don't automatically start the daemon after initializing a |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 39 | newly created site path. This permits the administrator |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 40 | to inspect and modify the configuration before the daemon |
| 41 | is started. |
| 42 | |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 43 | -d:: |
| 44 | \--site-path:: |
| 45 | Location of the gerrit.config file, and all other per-site |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 46 | configuration data, supporting libraries and log files. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 47 | |
| 48 | CONTEXT |
| 49 | ------- |
| 50 | This command can only be run on a server which has direct |
| 51 | connectivity to the metadata database, and local access to the |
| 52 | managed Git repositories. |
| 53 | |
| 54 | GERRIT |
| 55 | ------ |
| 56 | Part of link:index.html[Gerrit Code Review] |