Page MenuHomePhabricator

Stop writing PID files in daemons
ClosedPublic

Authored by epriestley on Jun 20 2019, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 6:16 PM
Unknown Object (File)
Sun, Apr 21, 2:31 PM
Unknown Object (File)
Sat, Apr 20, 4:51 PM
Unknown Object (File)
Sat, Apr 20, 2:55 PM
Unknown Object (File)
Fri, Apr 19, 6:12 PM
Unknown Object (File)
Thu, Apr 18, 6:25 AM
Unknown Object (File)
Wed, Apr 17, 6:10 PM
Unknown Object (File)
Wed, Apr 10, 8:11 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.