Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14351510
D17780.id42745.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D17780.id42745.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -2474,6 +2474,7 @@
'PhabricatorDaemonLogListView' => 'applications/daemon/view/PhabricatorDaemonLogListView.php',
'PhabricatorDaemonLogQuery' => 'applications/daemon/query/PhabricatorDaemonLogQuery.php',
'PhabricatorDaemonLogViewController' => 'applications/daemon/controller/PhabricatorDaemonLogViewController.php',
+ 'PhabricatorDaemonManagementCheckWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php',
'PhabricatorDaemonManagementDebugWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementDebugWorkflow.php',
'PhabricatorDaemonManagementLaunchWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementLaunchWorkflow.php',
'PhabricatorDaemonManagementListWorkflow' => 'applications/daemon/management/PhabricatorDaemonManagementListWorkflow.php',
@@ -7584,6 +7585,7 @@
'PhabricatorDaemonLogListView' => 'AphrontView',
'PhabricatorDaemonLogQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorDaemonLogViewController' => 'PhabricatorDaemonController',
+ 'PhabricatorDaemonManagementCheckWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementDebugWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementLaunchWorkflow' => 'PhabricatorDaemonManagementWorkflow',
'PhabricatorDaemonManagementListWorkflow' => 'PhabricatorDaemonManagementWorkflow',
diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php
new file mode 100644
--- /dev/null
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementCheckWorkflow.php
@@ -0,0 +1,36 @@
+<?php
+
+final class PhabricatorDaemonManagementCheckWorkflow
+ extends PhabricatorDaemonManagementWorkflow {
+
+ protected function didConstruct() {
+ $this
+ ->setName('check')
+ ->setSynopsis(pht('Check daemon setup.'));
+ }
+
+ public function execute(PhutilArgumentParser $args) {
+ $console = PhutilConsole::getConsole();
+
+ $check = new PhabricatorDaemonsSetupCheck();
+ $check->runSetupChecks();
+ $issues = $check->getIssues();
+
+ if (empty($issues)) {
+ $console->writeOut(
+ "**%s**\n",
+ pht('There are no Phabricator daemon issues to resolve.'));
+ return 0;
+ }
+
+ foreach ($issues as $issue) {
+ $console->writeOut(
+ "**%s**\n%s\n",
+ $issue->getName(),
+ $issue->getSummary());
+ }
+
+ return 1;
+ }
+
+}
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
@@ -101,6 +101,8 @@
}
$table->draw();
+
+ return $status;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 7:52 AM (20 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909538
Default Alt Text
D17780.id42745.diff (3 KB)
Attached To
Mode
D17780: Allow phd to run daemon setup check (Ref T12629)
Attached
Detach File
Event Timeline
Log In to Comment