Homec4science

Stop using process/filesystem-based checks to determine if daemons are running

Authored by epriestley <git@epriestley.com> on Aug 12 2013, 20:20.

Description

Stop using process/filesystem-based checks to determine if daemons are running

Summary:
We currently check if daemons are running using the filesystem and process list. These checks reach the wrong result for a lot of users because their webservers can't read the filesystem or process list. They also reach the wrong result for daemons running on other machines.

Instead, query the active daemon list to see if daemons are running. This should be significantly more reliable.

(We didn't do this before because the running daemon list mechanism didn't exist when the check was written, and at the time it was more complex than doing a simple filesystem/process list thing.)

Test Plan: Viewed /repositories/ with and without daemons running, saw appropriate warning or lack of warning.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6722

Details

Committed
epriestley <git@epriestley.com>Aug 12 2013, 20:20
Pushed
aubortJan 31 2017, 17:16
Parents
rPH262475d15136: Clean up a couple more doc references to the old MetaMTA application
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa0f0ba6acd47: Stop using process/filesystem-based checks to determine if daemons are running (authored by epriestley <git@epriestley.com>).Aug 12 2013, 20:20