Differential D9226 Diff 22418 src/applications/aphlict/management/PhabricatorAphlictManagementStatusWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/aphlict/management/PhabricatorAphlictManagementStatusWorkflow.php
- This file was added.
| <?php | |||||
| final class PhabricatorAphlictManagementStatusWorkflow | |||||
| extends PhabricatorAphlictManagementWorkflow { | |||||
| public function didConstruct() { | |||||
| $this | |||||
| ->setName('status') | |||||
| ->setSynopsis(pht('Show the status of the notifications server.')) | |||||
| ->setArguments(array()); | |||||
| } | |||||
| public function execute(PhutilArgumentParser $args) { | |||||
| $console = PhutilConsole::getConsole(); | |||||
| $pid = $this->getPID(); | |||||
| if (!$pid) { | |||||
| $console->writeErr(pht("Aphlict is not running.\n")); | |||||
| return 1; | |||||
| } | |||||
| $console->writeOut(pht("Aphlict (%s) is running.\n", $pid)); | |||||
| return 0; | |||||
| } | |||||
| } | |||||