Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13966533
D11873.id28595.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
944 B
Referenced Files
None
Subscribers
None
D11873.id28595.diff
View Options
diff --git a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
--- a/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
+++ b/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
@@ -40,6 +40,20 @@
$logs = mpull($logs, null, 'getDaemonID');
}
+ // Support PID files that use the old daemon format, where each overseer
+ // had exactly one daemon. We can eventually remove this; they will still
+ // be stopped by `phd stop --force` even if we don't identify them here.
+ if (!$daemons && idx($dict, 'name')) {
+ $daemons = array(
+ array(
+ 'config' => array(
+ 'class' => idx($dict, 'name'),
+ 'argv' => idx($dict, 'argv', array()),
+ ),
+ ),
+ );
+ }
+
foreach ($daemons as $daemon) {
$ref = new PhabricatorDaemonReference();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 17 2024, 8:24 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721352
Default Alt Text
D11873.id28595.diff (944 B)
Attached To
Mode
D11873: Allow modern `phd stop` to stop old daemons cleanly
Attached
Detach File
Event Timeline
Log In to Comment