Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106200403
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
Sun, Mar 23, 12:57
Size
681 B
Mime Type
text/x-php
Expires
Tue, Mar 25, 12:57 (2 d)
Engine
blob
Format
Raw Data
Handle
25102168
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 notification server.'
))
->
setArguments
(
$this
->
getLaunchArguments
());
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$this
->
parseLaunchArguments
(
$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