mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Retain pid files for dead daemons in 'phd status'.
'phd status' should have a stable result when invoked multiple times. Automatically removing PID files for dead daemons every time 'phd status' is invoked prevents tools from noticing that a daemon has died if something happens to invoke 'phd status' before the tool looks. This affects Puppet noticably, since it probably runs the status command every half hour.
This commit is contained in:
parent
420d6426f9
commit
883e11f761
1 changed files with 0 additions and 3 deletions
|
@ -55,9 +55,6 @@ final class PhabricatorDaemonControl {
|
|||
if (!$daemon->isRunning()) {
|
||||
$status = 2;
|
||||
$name = '<DEAD> '.$name;
|
||||
if ($daemon->getPIDFile()) {
|
||||
Filesystem::remove($daemon->getPIDFile());
|
||||
}
|
||||
}
|
||||
printf(
|
||||
"%5s\t%-24s\t%s\n",
|
||||
|
|
Loading…
Reference in a new issue