Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorPHDConfigOptions.php
| Show All 37 Lines | return array( | ||||
| "to each instance of `phd`. For example, if this limit is set ". | "to each instance of `phd`. For example, if this limit is set ". | ||||
| "to `4` and you have three hosts running daemons, the effective ". | "to `4` and you have three hosts running daemons, the effective ". | ||||
| "global limit will be 12.". | "global limit will be 12.". | ||||
| "\n\n". | "\n\n". | ||||
| "After changing this value, you must restart the daemons. Most ". | "After changing this value, you must restart the daemons. Most ". | ||||
| "configuration changes are picked up by the daemons ". | "configuration changes are picked up by the daemons ". | ||||
| "automatically, but pool sizes can not be changed without a ". | "automatically, but pool sizes can not be changed without a ". | ||||
| "restart.")), | "restart.")), | ||||
| $this->newOption('phd.verbose', 'bool', false) | |||||
| ->setLocked(true) | |||||
| ->setBoolOptions( | |||||
| array( | |||||
| pht('Verbose mode'), | |||||
| pht('Normal mode'), | |||||
| )) | |||||
| ->setSummary(pht("Launch daemons in 'verbose' mode by default.")) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Launch daemons in 'verbose' mode by default. This creates a lot ". | |||||
| "of output, but can help debug issues. Daemons launched in debug ". | |||||
| "mode with '%s' are always launched in verbose mode. ". | |||||
| "See also '%s'.", | |||||
| 'phd debug', | |||||
| 'phd.trace')), | |||||
| $this->newOption('phd.user', 'string', null) | $this->newOption('phd.user', 'string', null) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setSummary(pht('System user to run daemons as.')) | ->setSummary(pht('System user to run daemons as.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Specify a system user to run the daemons as. Primarily, this '. | 'Specify a system user to run the daemons as. Primarily, this '. | ||||
| 'user will own the working copies of any repositories that '. | 'user will own the working copies of any repositories that '. | ||||
| 'Phabricator imports or manages. This option is new and '. | 'Phabricator imports or manages. This option is new and '. | ||||
| 'experimental.')), | 'experimental.')), | ||||
| $this->newOption('phd.trace', 'bool', false) | |||||
| ->setLocked(true) | |||||
| ->setBoolOptions( | |||||
| array( | |||||
| pht('Trace mode'), | |||||
| pht('Normal mode'), | |||||
| )) | |||||
| ->setSummary(pht("Launch daemons in 'trace' mode by default.")) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Launch daemons in 'trace' mode by default. This creates an ". | |||||
| "ENORMOUS amount of output, but can help debug issues. Daemons ". | |||||
| "launched in debug mode with '%s' are always launched in ". | |||||
| "trace mode. See also '%s'.", | |||||
| 'phd debug', | |||||
| 'phd.verbose')), | |||||
| $this->newOption('phd.garbage-collection', 'wild', array()) | $this->newOption('phd.garbage-collection', 'wild', array()) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setLockedMessage( | ->setLockedMessage( | ||||
| pht( | pht( | ||||
| 'This option can not be edited from the web UI. Use %s to adjust '. | 'This option can not be edited from the web UI. Use %s to adjust '. | ||||
| 'garbage collector policies.', | 'garbage collector policies.', | ||||
| phutil_tag('tt', array(), 'bin/garbage set-policy'))) | phutil_tag('tt', array(), 'bin/garbage set-policy'))) | ||||
| ->setSummary(pht('Retention policies for garbage collection.')) | ->setSummary(pht('Retention policies for garbage collection.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Customizes retention policies for garbage collectors.')), | 'Customizes retention policies for garbage collectors.')), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||