Page MenuHomePhorge

PhabricatorAphlictManagementStatusWorkflow.php
No OneTemporary

Size
622 B
Referenced Files
None
Subscribers
None

PhabricatorAphlictManagementStatusWorkflow.php

<?php
final class PhabricatorAphlictManagementStatusWorkflow
extends PhabricatorAphlictManagementWorkflow {
protected 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("%s\n", pht('Aphlict is not running.'));
return 1;
}
$console->writeOut("%s\n", pht('Aphlict (%s) is running.', $pid));
return 0;
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 1:59 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224112
Default Alt Text
PhabricatorAphlictManagementStatusWorkflow.php (622 B)

Event Timeline