sapling/eden
Matt Glazar 78abaa20ad Separate daemon mode from foreground mode in StartupLogger
Summary:
StartupLogger handles two independent scenarios: edenfs in daemon mode, and edenfs in foreground mode. I need to add a third for systemd support: edenfs in foreground mode but with startup logs written to a file.

Refactor the existing StartupLogger into an abstract base class with two concrete derived classes: DaemonStartupLogger and ForegroundStartupLogger. This will make adding the systemd feature easy without confusing the logic for the existing scenarios.

Aside from dropping the setsid() call for ForegroundStartupLogger, this diff should not change behavior.

Reviewed By: simpkins

Differential Revision: D10228156

fbshipit-source-id: fbc2c771c6fbb675779ef05ca3b7395b70b67485
2018-10-22 20:27:26 -07:00
..
cli Add opt-in for experimental systemd mode 2018-10-22 20:27:25 -07:00
docs store FileInode and TreeInode timestamps in the InodeTable 2018-05-22 11:22:19 -07:00
fs Separate daemon mode from foreground mode in StartupLogger 2018-10-22 20:27:26 -07:00
hooks ensure .hg has read and search permissions for group/other 2018-06-11 22:33:11 -07:00
integration Separate daemon mode from foreground mode in StartupLogger 2018-10-22 20:27:26 -07:00
py Improve typing of dirstate read and write functions 2018-10-08 15:14:44 -07:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
test-data put the overlay test data into a tar file 2018-06-20 18:36:27 -07:00
third-party Remove TARGETS files 2018-02-20 19:57:45 -08:00
win Win: Added .thrift files to build scripts 2018-10-11 13:38:20 -07:00
Eden.project.toml Eden.project.toml file for Nuclide 2018-04-26 11:05:23 -07:00