Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/daemon/management/PhabricatorDaemonManagementStartWorkflow.php
12256 views
1
<?php
2
3
final class PhabricatorDaemonManagementStartWorkflow
4
extends PhabricatorDaemonManagementWorkflow {
5
6
protected function didConstruct() {
7
$this
8
->setName('start')
9
->setSynopsis(
10
pht(
11
'Start the standard configured collection of daemons. '.
12
'This is appropriate for most installs. Use **%s** to '.
13
'customize which daemons are launched.',
14
'phd launch'))
15
->setArguments(
16
array(
17
array(
18
'name' => 'keep-leases',
19
'help' => pht(
20
'By default, **%s** will free all task leases held by '.
21
'the daemons. With this flag, this step will be skipped.',
22
'phd start'),
23
),
24
array(
25
'name' => 'force',
26
'help' => pht('Start daemons even if daemons are already running.'),
27
),
28
$this->getAutoscaleReserveArgument(),
29
));
30
}
31
32
public function execute(PhutilArgumentParser $args) {
33
return $this->executeStartCommand(
34
array(
35
'keep-leases' => $args->getArg('keep-leases'),
36
'force' => $args->getArg('force'),
37
'reserve' => (float)$args->getArg('autoscale-reserve'),
38
));
39
}
40
41
}
42
43