mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
24 lines
505 B
PHP
24 lines
505 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorDaemonManagementRestartWorkflow
|
||
|
extends PhabricatorDaemonManagementWorkflow {
|
||
|
|
||
|
public function didConstruct() {
|
||
|
$this
|
||
|
->setName('restart')
|
||
|
->setSynopsis(
|
||
|
pht(
|
||
|
'Stop, then start the standard daemon loadout.'))
|
||
|
->setArguments(array());
|
||
|
}
|
||
|
|
||
|
public function execute(PhutilArgumentParser $args) {
|
||
|
$err = $this->executeStopCommand(array());
|
||
|
if ($err) {
|
||
|
return $err;
|
||
|
}
|
||
|
return $this->executeStartCommand();
|
||
|
}
|
||
|
|
||
|
}
|