Page MenuHomePhabricator

Formalize a "Query" class for looking at the process list
ClosedPublic

Authored by epriestley on Jun 20 2019, 9:03 PM.
Tags
None
Referenced Files
F18884446: D20600.diff
Fri, Nov 7, 1:21 AM
F18876335: D20600.diff
Wed, Nov 5, 11:32 PM
F18823541: D20600.diff
Oct 23 2025, 12:28 PM
F18788629: D20600.id49134.diff
Oct 15 2025, 5:47 AM
F18759951: D20600.id.diff
Oct 6 2025, 7:03 AM
F18758782: D20600.diff
Oct 5 2025, 11:39 PM
F18746497: D20600.id.diff
Oct 3 2025, 12:38 PM
F18652830: D20600.id49164.diff
Sep 21 2025, 9:48 AM
Subscribers
None

Details

Summary

Ref T13321. We currently use a mixture of PID files and examining the process list to figure out what daemons are running.

I'd like to move away from PID files, which aren't terribly reliable, particularly after hosts restart unexpectedly.

To prepare for this, write a "ProcessQuery", similar to Phabricator "Query" classes that can fetch a structured list of running processes.

This is very similar to existing code in PhutilDaemonOverseer::findRunningDaemons(), but I plan to remove that soon so I'm providing this as an alterantive rather than an upgrade.

Test Plan

See next chagnes.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable