HomePhabricator

use available api to check daemon status

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

Provenance
vvavrychukAuthored on
Differential Revision
Restricted Differential Revision
Parents
rPf1d4755c6171: Fix unit test updates so a diff update has a predictable unit test status
Branches
Unknown
Tags
Unknown

Event Timeline