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
Unknown Object (File)
Tue, Jul 1, 11:57 AM
Unknown Object (File)
Sun, Jun 29, 6:16 PM
Unknown Object (File)
Sun, Jun 29, 5:52 AM
Unknown Object (File)
May 30 2025, 4:34 AM
Unknown Object (File)
May 28 2025, 8:52 AM
Unknown Object (File)
May 28 2025, 12:55 AM
Unknown Object (File)
May 8 2025, 10:53 PM
Unknown Object (File)
Apr 28 2025, 1:23 PM
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