Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120154415
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
Wed, Jul 2, 08:05
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jul 4, 08:05 (2 d)
Engine
blob
Format
Raw Data
Handle
27115821
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
,
),
array
(
'name'
=>
'force'
,
'help'
=>
pht
(
'Also stop running processes that look like daemons but do '
.
'not have corresponding PID files.'
),
),
));
}
public
function
execute
(
PhutilArgumentParser
$args
)
{
$graceful
=
$args
->
getArg
(
'graceful'
);
$force
=
$args
->
getArg
(
'force'
);
$err
=
$this
->
executeStopCommand
(
array
(),
$graceful
,
$force
);
if
(
$err
)
{
return
$err
;
}
return
$this
->
executeStartCommand
();
}
}
Event Timeline
Log In to Comment