Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/aphlict/management/PhabricatorAphlictManagementStatusWorkflow.php
12256 views
1
<?php
2
3
final class PhabricatorAphlictManagementStatusWorkflow
4
extends PhabricatorAphlictManagementWorkflow {
5
6
protected function didConstruct() {
7
$this
8
->setName('status')
9
->setSynopsis(pht('Show the status of the notification server.'))
10
->setArguments($this->getLaunchArguments());
11
}
12
13
public function execute(PhutilArgumentParser $args) {
14
$this->parseLaunchArguments($args);
15
$console = PhutilConsole::getConsole();
16
$pid = $this->getPID();
17
18
if (!$pid) {
19
$console->writeErr("%s\n", pht('Aphlict is not running.'));
20
return 1;
21
}
22
23
$console->writeOut("%s\n", pht('Aphlict (%s) is running.', $pid));
24
return 0;
25
}
26
27
}
28
29