1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/daemon/controller
epriestley 9309723ac4 Send graceful shutdown signals to daemons in Phabricator
Summary:
Fixes T5855. Adds a `--graceful N` flag to `phd stop` and `phd restart`.

`phd` will send SIGINT, wait `N` seconds, SIGTERM, wait 15 seconds, and SIGKILL. By default, `N` is 15.

Test Plan:
  - Ran `bin/phd debug ...` and used `^C` to interrupt daemons. Saw graceful shutdown behavior, and abrupt termination on multiple `^C`.
  - Ran `bin/phd start`, `bin/phd stop` and `bin/phd restart` with `--graceful` set to various things, notably `0`. Saw graceful shutdowns on the CLI and in the web UI. With `0`, abrupt shutdowns.

Reviewers: btrahan, hach-que

Reviewed By: hach-que

Subscribers: epriestley

Maniphest Tasks: T5855

Differential Revision: https://secure.phabricator.com/D10228
2014-08-11 20:18:31 -07:00
..
PhabricatorDaemonCombinedLogController.php Set device to false for all pages which don't specify device readiness 2014-06-23 15:15:11 -07:00
PhabricatorDaemonConsoleController.php Allow worker tasks to have priorities 2014-07-12 03:02:06 +10:00
PhabricatorDaemonController.php pht for Daemons. 2013-02-26 19:51:36 -08: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 Send graceful shutdown signals to daemons in Phabricator 2014-08-11 20:18:31 -07:00
PhabricatorWorkerTaskDetailController.php Remove user-independent date and time functions from Phabricator 2014-07-13 12:03:17 +10:00
PhabricatorWorkerTaskUpdateController.php pht for Daemons. 2013-02-26 19:51:36 -08:00