Homec4science

use available api to check daemon status

Authored by Vasyl Vavrychuk <vvavrychuk@gmail.com> on Sep 27 2012, 00:33.

Description

use available api to check daemon status

Summary:
Replace executing 'ps aux' with usage of available api to
control daemons PhabricatorDaemonControl.

This fixes isPullDaemonRunningOnThisMachine returning wrong status
under Fedora & lighttpd & SELinux because SELinux with default
settings blocked getting all processes in 'ps aux'.

Test Plan: start stop daemon and check repository app

Reviewers: epriestley

CC: aran, Korvin

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

Details

Committed
Vasyl Vavrychuk <vvavrychuk@gmail.com>Sep 27 2012, 21:27
Pushed
aubortJan 31 2017, 17:16
Parents
rPHf1d4755c6171: Fix unit test updates so a diff update has a predictable unit test status
Branches
Unknown
Tags
Unknown

Event Timeline

Vasyl Vavrychuk <vvavrychuk@gmail.com> committed rPH18ee51ac7b1f: use available api to check daemon status (authored by Vasyl Vavrychuk <vvavrychuk@gmail.com>).Sep 27 2012, 21:27