mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 20:51:10 +01:00
6f246bd351
Summary: Fixes T4881. Test Plan: made a config change, saw the issue, restarted daemons and it went away Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4881 Differential Revision: https://secure.phabricator.com/D10339
63 lines
1.4 KiB
PHP
63 lines
1.4 KiB
PHP
<?php
|
|
|
|
final class PhabricatorDaemonLog extends PhabricatorDaemonDAO
|
|
implements PhabricatorPolicyInterface {
|
|
|
|
const STATUS_UNKNOWN = 'unknown';
|
|
const STATUS_RUNNING = 'run';
|
|
const STATUS_DEAD = 'dead';
|
|
const STATUS_WAIT = 'wait';
|
|
const STATUS_EXITING = 'exiting';
|
|
const STATUS_EXITED = 'exit';
|
|
|
|
protected $daemon;
|
|
protected $host;
|
|
protected $pid;
|
|
protected $argv;
|
|
protected $explicitArgv = array();
|
|
protected $envHash;
|
|
protected $status;
|
|
|
|
public function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_SERIALIZATION => array(
|
|
'argv' => self::SERIALIZATION_JSON,
|
|
'explicitArgv' => self::SERIALIZATION_JSON,
|
|
),
|
|
) + parent::getConfiguration();
|
|
}
|
|
|
|
public function getExplicitArgv() {
|
|
$argv = $this->explicitArgv;
|
|
if (!is_array($argv)) {
|
|
return array();
|
|
}
|
|
return $argv;
|
|
}
|
|
|
|
|
|
/* -( PhabricatorPolicyInterface )----------------------------------------- */
|
|
|
|
public function getPHID() {
|
|
return null;
|
|
}
|
|
|
|
public function getCapabilities() {
|
|
return array(
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
);
|
|
}
|
|
|
|
public function getPolicy($capability) {
|
|
return PhabricatorPolicies::POLICY_ADMIN;
|
|
}
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
return false;
|
|
}
|
|
|
|
public function describeAutomaticCapability($capability) {
|
|
return null;
|
|
}
|
|
|
|
}
|