Page MenuHomePhabricator

Stop writing PID files in daemons
ClosedPublic

Authored by epriestley on Jun 20 2019, 10:05 PM.
Tags
None
Referenced Files
F22570203: D20607.diff
Sat, Sep 26, 9:54 AM
F22534297: D20607.id49172.diff
Mon, Sep 21, 11:16 PM
Unknown Object (File)
Sun, Sep 13, 12:03 PM
Unknown Object (File)
Aug 23 2026, 1:03 PM
Unknown Object (File)
Aug 21 2026, 7:51 PM
Unknown Object (File)
Jul 12 2026, 9:10 AM
Unknown Object (File)
Jul 12 2026, 9:10 AM
Unknown Object (File)
Jun 19 2026, 12:52 PM
Subscribers
None

Details

Summary

Ref T13321. There are no more PID file readers, so we can stop writing them.

Test Plan

Ran bin/phd start, saw daemons doing stuff.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

thumbsup.gif (320×300 px, 6 MB)

src/daemon/PhutilDaemonOverseer.php
124–125

One thing we're losing here is that daemons will no longer crash instantly on startup if they don't have permissions or the disk is full.

This revision is now accepted and ready to land.Jun 20 2019, 10:51 PM
src/daemon/PhutilDaemonOverseer.php
124–125

Haha, yes. All told, I think I deleted like four blocks of // TODO: It would be nice if this wasn't a horrible, fragile mess. code.

This revision was automatically updated to reflect the committed changes.