Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102359939
PhabricatorAphlictManagementStatusWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 19, 21:38
Size
622 B
Mime Type
text/x-php
Expires
Fri, Feb 21, 21:38 (2 d)
Engine
blob
Format
Raw Data
Handle
24338259
Attached To
rPH Phabricator
PhabricatorAphlictManagementStatusWorkflow.php
View Options
<?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
;
}
}
Event Timeline
Log In to Comment