Path: blob/master/src/applications/daemon/management/PhabricatorDaemonManagementStopWorkflow.php
12256 views
<?php12final class PhabricatorDaemonManagementStopWorkflow3extends PhabricatorDaemonManagementWorkflow {45protected function didConstruct() {6$this7->setName('stop')8->setSynopsis(pht('Stop daemon processes on this host.'))9->setArguments(10array(11array(12'name' => 'graceful',13'param' => 'seconds',14'help' => pht(15'Grace period for daemons to attempt a clean shutdown, in '.16'seconds. Defaults to __15__ seconds.'),17'default' => 15,18),19array(20'name' => 'force',21'help' => pht(22'Stop all daemon processes on this host, even if they belong '.23'to another instance.'),24),25array(26'name' => 'gently',27'help' => pht('Deprecated. Has no effect.'),28),29));30}3132public function execute(PhutilArgumentParser $args) {33return $this->executeStopCommand(34array(35'graceful' => $args->getArg('graceful'),36'force' => $args->getArg('force'),37));38}3940}414243