3 final class PhabricatorDaemonManagementRestartWorkflow
4 extends PhabricatorDaemonManagementWorkflow
{
6 protected function didConstruct() {
11 'Stop daemon processes on this host, then start the standard '.
19 'Grace period for daemons to attempt a clean shutdown, in '.
20 'seconds. Defaults to __15__ seconds.'),
26 'Stop all daemon processes on this host, even if they belong '.
27 'to another Phabricator instance.'),
31 'help' => pht('Deprecated. Has no effect.'),
33 $this->getAutoscaleReserveArgument(),
37 public function execute(PhutilArgumentParser
$args) {
38 $err = $this->executeStopCommand(
40 'graceful' => $args->getArg('graceful'),
41 'force' => $args->getArg('force'),
48 return $this->executeStartCommand(
50 'reserve' => (float)$args->getArg('autoscale-reserve'),