1
0
Fork 0
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:
Owen Jacobson 2012-07-17 13:44:15 -04:00
parent 420d6426f9
commit 883e11f761

View file

@ -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",