Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/daemon/management/PhabricatorDaemonManagementStopWorkflow.php
12256 views
1
<?php
2
3
final class PhabricatorDaemonManagementStopWorkflow
4
extends PhabricatorDaemonManagementWorkflow {
5
6
protected function didConstruct() {
7
$this
8
->setName('stop')
9
->setSynopsis(pht('Stop daemon processes on this host.'))
10
->setArguments(
11
array(
12
array(
13
'name' => 'graceful',
14
'param' => 'seconds',
15
'help' => pht(
16
'Grace period for daemons to attempt a clean shutdown, in '.
17
'seconds. Defaults to __15__ seconds.'),
18
'default' => 15,
19
),
20
array(
21
'name' => 'force',
22
'help' => pht(
23
'Stop all daemon processes on this host, even if they belong '.
24
'to another instance.'),
25
),
26
array(
27
'name' => 'gently',
28
'help' => pht('Deprecated. Has no effect.'),
29
),
30
));
31
}
32
33
public function execute(PhutilArgumentParser $args) {
34
return $this->executeStopCommand(
35
array(
36
'graceful' => $args->getArg('graceful'),
37
'force' => $args->getArg('force'),
38
));
39
}
40
41
}
42
43