Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15434603
D7964.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
D7964.diff
View Options
Index: src/__phutil_library_map__.php
===================================================================
--- src/__phutil_library_map__.php
+++ src/__phutil_library_map__.php
@@ -1924,6 +1924,7 @@
'PhabricatorSetupCheckAuth' => 'applications/config/check/PhabricatorSetupCheckAuth.php',
'PhabricatorSetupCheckBaseURI' => 'applications/config/check/PhabricatorSetupCheckBaseURI.php',
'PhabricatorSetupCheckBinaries' => 'applications/config/check/PhabricatorSetupCheckBinaries.php',
+ 'PhabricatorSetupCheckDaemons' => 'applications/config/check/PhabricatorSetupCheckDaemons.php',
'PhabricatorSetupCheckDatabase' => 'applications/config/check/PhabricatorSetupCheckDatabase.php',
'PhabricatorSetupCheckExtensions' => 'applications/config/check/PhabricatorSetupCheckExtensions.php',
'PhabricatorSetupCheckExtraConfig' => 'applications/config/check/PhabricatorSetupCheckExtraConfig.php',
@@ -4564,6 +4565,7 @@
'PhabricatorSetupCheckAuth' => 'PhabricatorSetupCheck',
'PhabricatorSetupCheckBaseURI' => 'PhabricatorSetupCheck',
'PhabricatorSetupCheckBinaries' => 'PhabricatorSetupCheck',
+ 'PhabricatorSetupCheckDaemons' => 'PhabricatorSetupCheck',
'PhabricatorSetupCheckDatabase' => 'PhabricatorSetupCheck',
'PhabricatorSetupCheckExtensions' => 'PhabricatorSetupCheck',
'PhabricatorSetupCheckExtraConfig' => 'PhabricatorSetupCheck',
Index: src/applications/config/check/PhabricatorSetupCheckDaemons.php
===================================================================
--- /dev/null
+++ src/applications/config/check/PhabricatorSetupCheckDaemons.php
@@ -0,0 +1,46 @@
+<?php
+
+final class PhabricatorSetupCheckDaemons extends PhabricatorSetupCheck {
+
+ protected function executeChecks() {
+
+ $task_daemon = id(new PhabricatorDaemonLogQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE)
+ ->withDaemonClasses(array('PhabricatorTaskmasterDaemon'))
+ ->setLimit(1)
+ ->execute();
+
+ if (!$task_daemon) {
+ $doc_href = PhabricatorEnv::getDocLink(
+ 'article/Managing_Daemons_with_phd.html');
+
+ $summary = pht(
+ 'You must start the Phabricator daemons to send email, rebuild '.
+ 'search indexes, and do other background processing.');
+
+ $message = pht(
+ 'The Phabricator daemons are not running, so Phabricator will not '.
+ 'be able to perform background processing (including sending email, '.
+ 'rebuilding search indexes, importing commits, cleaning up old data, '.
+ 'running builds, etc.).'.
+ "\n\n".
+ 'Use %s to start daemons. See %s for more information.',
+ phutil_tag('tt', array(), 'bin/phd start'),
+ phutil_tag(
+ 'a',
+ array(
+ 'href' => $doc_href,
+ ),
+ pht('Managing Daemons with phd')));
+
+ $this->newIssue('daemons.not-running')
+ ->setShortName(pht('Daemons Not Running'))
+ ->setName(pht('Phabricator Daemons Are Not Running'))
+ ->setSummary($summary)
+ ->setMessage($message)
+ ->addCommand('phabricator/ $ ./bin/phd start');
+ }
+
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 26, 4:37 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7409522
Default Alt Text
D7964.diff (3 KB)
Attached To
Mode
D7964: Warn if daemons are not running
Attached
Detach File
Event Timeline
Log In to Comment