1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-16 03:42:41 +01:00
phorge-phorge/src/applications/daemon/controller
Fabian Stelzer 2fedb6f941 Start phd daemons as the correctly configured user and refuse otherwise
Summary:
Fixes T5196
If no phd.user is configured the behaviour is unchanged besides printing a warning when run as root (Usually i would add an exit(1) here but that would break existing installs who do that).
If phd.user is set and the current user is root it will run the daemon as: su USER -c "command" (I'm not sure if this works for every platform needed)
Otherwise it will refuse to start if configured and current user mismatch.

Test Plan: Stopped & Started phd daemon with various users and different phd.user settings including root

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: vinzent, epriestley

Maniphest Tasks: T5196

Differential Revision: https://secure.phabricator.com/D11036
2014-12-23 08:15:51 -08:00
..
PhabricatorDaemonConsoleController.php Fix daemon task queue to respect task priority 2014-10-31 09:27:04 -07:00
PhabricatorDaemonController.php Daemons - move combined log to console 2014-08-27 14:53:38 -07:00
PhabricatorDaemonLogEventViewController.php Set device to false for all pages which don't specify device readiness 2014-06-23 15:15:11 -07:00
PhabricatorDaemonLogListController.php Remove all device = true from page construction 2014-06-23 15:18:14 -07:00
PhabricatorDaemonLogViewController.php Start phd daemons as the correctly configured user and refuse otherwise 2014-12-23 08:15:51 -08:00
PhabricatorWorkerTaskDetailController.php Move cancel/retry/free task queue actions to bin/worker 2014-12-06 09:14:16 -08:00