~ubuntu-branches/ubuntu/wily/phabricator/wily-proposed

« back to all changes in this revision

Viewing changes to phabricator/src/applications/daemon/management/PhabricatorDaemonManagementRestartWorkflow.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-02-11 14:13:38 UTC
  • mfrom: (0.18.1) (0.17.1) (0.13.2) (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20150211141338-7t6wkyisc5b04ww5
Tags: 0~git20150211-1
* New snapshot release
* updated german translation
* fixed daemons not starting with unprivileged user

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
            'default' => 15,
21
21
          ),
22
22
          array(
 
23
            'name' => 'gently',
 
24
            'help' => pht(
 
25
              'Ignore running processes that look like daemons but do not '.
 
26
              'have corresponding PID files.'),
 
27
          ),
 
28
          array(
23
29
            'name' => 'force',
24
30
            'help' => pht(
25
31
              'Also stop running processes that look like daemons but do '.
29
35
  }
30
36
 
31
37
  public function execute(PhutilArgumentParser $args) {
32
 
    $graceful = $args->getArg('graceful');
33
 
    $force = $args->getArg('force');
34
 
    $err = $this->executeStopCommand(array(), $graceful, $force);
 
38
    $err = $this->executeStopCommand(
 
39
      array(),
 
40
      array(
 
41
        'graceful' => $args->getArg('graceful'),
 
42
        'force' => $args->getArg('force'),
 
43
        'gently' => $args->getArg('gently'),
 
44
      ));
35
45
    if ($err) {
36
46
      return $err;
37
47
    }
 
48
 
38
49
    return $this->executeStartCommand();
39
50
  }
40
51