Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/aphlict/management/PhabricatorAphlictManagementRestartWorkflow.php
12256 views
1
<?php
2
3
final class PhabricatorAphlictManagementRestartWorkflow
4
extends PhabricatorAphlictManagementWorkflow {
5
6
protected function didConstruct() {
7
$this
8
->setName('restart')
9
->setSynopsis(pht('Stop, then start the notification server.'))
10
->setArguments($this->getLaunchArguments());
11
}
12
13
public function execute(PhutilArgumentParser $args) {
14
$this->parseLaunchArguments($args);
15
16
$err = $this->executeStopCommand();
17
if ($err) {
18
return $err;
19
}
20
21
return $this->executeStartCommand();
22
}
23
24
}
25
26