Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F232953
daemons.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Nov 12 2014, 9:20 PM
2014-11-12 21:20:21 (UTC+0)
Size
641 B
Referenced Files
None
Subscribers
None
daemons.php
View Options
<?php
require_once
'scripts/__init_script__.php'
;
$environment_hash
=
PhabricatorEnv
::
calculateEnvironmentHash
();
echo
"Hash for this CLI environment: {$environment_hash}
\n
"
;
$all_daemons
=
id
(
new
PhabricatorDaemonLogQuery
())
->
setViewer
(
PhabricatorUser
::
getOmnipotentUser
())
->
withStatus
(
PhabricatorDaemonLogQuery
::
STATUS_ALIVE
)
->
execute
();
if
(
$all_daemons
)
{
foreach
(
$all_daemons
as
$daemon
)
{
$id
=
$daemon
->
getID
();
$host
=
$daemon
->
getHost
();
$pid
=
$daemon
->
getPID
();
$hash
=
$daemon
->
getEnvHash
();
echo
"Daemon {$id} {$host} {$pid} {$hash}
\n
"
;
}
}
else
{
echo
"Found no running daemons.
\n
"
;
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/3j/p7/q5yrbujgyk7efqsw
Default Alt Text
daemons.php (641 B)
Attached To
Mode
P1417 daemons.php
Attached
Detach File
Event Timeline
Log In to Comment