Page MenuHomePhabricator

D9208.diff
No OneTemporary

D9208.diff

diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
--- a/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
@@ -23,10 +23,11 @@
$status = 0;
printf(
- "%-5s\t%-24s\t%s\n",
- "PID",
- "Started",
- "Daemon");
+ "%-5s\t%-24s\t%-50s%s\n",
+ 'PID',
+ 'Started',
+ 'Daemon',
+ 'Arguments');
foreach ($daemons as $daemon) {
$name = $daemon->getName();
if (!$daemon->isRunning()) {
@@ -35,12 +36,13 @@
$name = '<DEAD> '.$name;
}
printf(
- "%5s\t%-24s\t%s\n",
+ "%5s\t%-24s\t%-50s%s\n",
$daemon->getPID(),
$daemon->getEpochStarted()
? date('M j Y, g:i:s A', $daemon->getEpochStarted())
: null,
- $name);
+ $name,
+ csprintf('%LR', $daemon->getArgv()));
}
return $status;
diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
--- a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
+++ b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
@@ -3,6 +3,7 @@
final class PhabricatorDaemonReference {
private $name;
+ private $argv;
private $pid;
private $start;
private $pidFile;
@@ -13,6 +14,7 @@
$ref = new PhabricatorDaemonReference();
$ref->name = idx($dict, 'name', 'Unknown');
+ $ref->argv = idx($dict, 'argv', array());
$ref->pid = idx($dict, 'pid');
$ref->start = idx($dict, 'start');
@@ -56,6 +58,10 @@
return $this->name;
}
+ public function getArgv() {
+ return $this->argv;
+ }
+
public function getEpochStarted() {
return $this->start;
}

File Metadata

Mime Type
text/plain
Expires
Oct 18 2024, 3:25 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727564
Default Alt Text
D9208.diff (1 KB)

Event Timeline