Path: blob/master/src/applications/daemon/management/PhabricatorDaemonManagementStartWorkflow.php
12256 views
<?php12final class PhabricatorDaemonManagementStartWorkflow3extends PhabricatorDaemonManagementWorkflow {45protected function didConstruct() {6$this7->setName('start')8->setSynopsis(9pht(10'Start the standard configured collection of daemons. '.11'This is appropriate for most installs. Use **%s** to '.12'customize which daemons are launched.',13'phd launch'))14->setArguments(15array(16array(17'name' => 'keep-leases',18'help' => pht(19'By default, **%s** will free all task leases held by '.20'the daemons. With this flag, this step will be skipped.',21'phd start'),22),23array(24'name' => 'force',25'help' => pht('Start daemons even if daemons are already running.'),26),27$this->getAutoscaleReserveArgument(),28));29}3031public function execute(PhutilArgumentParser $args) {32return $this->executeStartCommand(33array(34'keep-leases' => $args->getArg('keep-leases'),35'force' => $args->getArg('force'),36'reserve' => (float)$args->getArg('autoscale-reserve'),37));38}3940}414243