@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 28 lines 731 B view raw
1<?php 2 3final class PhabricatorDaemonManagementReloadWorkflow 4 extends PhabricatorDaemonManagementWorkflow { 5 6 protected function didConstruct() { 7 $this 8 ->setName('reload') 9 ->setSynopsis( 10 pht( 11 'Gracefully restart daemon processes in-place to pick up changes '. 12 'to source. This will not disrupt running jobs. This is an '. 13 'advanced workflow; most installs should use __%s__.', 14 'phd restart')) 15 ->setArguments( 16 array( 17 array( 18 'name' => 'pids', 19 'wildcard' => true, 20 ), 21 )); 22 } 23 24 public function execute(PhutilArgumentParser $args) { 25 return $this->executeReloadCommand($args->getArg('pids')); 26 } 27 28}