diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonControl.php b/src/infrastructure/daemon/control/PhabricatorDaemonControl.php index 2e82cc1c12..ce72b27b26 100644 --- a/src/infrastructure/daemon/control/PhabricatorDaemonControl.php +++ b/src/infrastructure/daemon/control/PhabricatorDaemonControl.php @@ -50,13 +50,20 @@ final class PhabricatorDaemonControl { "Started", "Daemon"); foreach ($daemons as $daemon) { + $name = $daemon->getName(); + if (!$daemon->isRunning()) { + $name = ' '.$name; + if ($daemon->getPIDFile()) { + Filesystem::remove($daemon->getPIDFile()); + } + } printf( "%5s\t%-24s\t%s\n", $daemon->getPID(), $daemon->getEpochStarted() ? date('M j Y, g:i:s A', $daemon->getEpochStarted()) : null, - $daemon->getName()); + $name); } return 0;