Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110633622
PhabricatorDaemonManagementRestartWorkflow.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, Apr 27, 06:22
Size
861 B
Mime Type
text/x-php
Expires
Tue, Apr 29, 06:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25835762
Attached To
rPH Phabricator
PhabricatorDaemonManagementRestartWorkflow.php
View Options
<?php
final
class
PhabricatorDaemonManagementRestartWorkflow
extends
PhabricatorDaemonManagementWorkflow
{
public
function
didConstruct
()
{
$this
->
setName
(
'restart'
)
->
setSynopsis
(
pht
(
'Stop, then start the standard daemon loadout.'
))
->
setArguments
(
array
(
array
(
'name'
=>
'graceful'
,
'param'
=>
'seconds'
,
'help'
=>
pht
(
'Grace period for daemons to attempt a clean shutdown, in '
.
'seconds. Defaults to __15__ seconds.'
),
'default'
=>
15
,
),
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$graceful
=
$args
->
getArg
(
'graceful'
);
$err
=
$this
->
executeStopCommand
(
array
(),
$graceful
);
if
(
$err
)
{
return
$err
;
}
return
$this
->
executeStartCommand
();
}
}
Event Timeline
Log In to Comment