mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 17:22:42 +01:00
09f3d0bb7e
Summary: Ref T7352. This changes `phd` to pass configuration to overseers over stdin. We still run one overseer per daemon. The "status" stuff needs some cleanup, but it's mostly just UI/cosmetic. Test Plan: - Ran `phd debug`, `phd launch`, `phd start`, `phd status`, `phd stop`, etc. - Verified PID files write in a reasonable format. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7352 Differential Revision: https://secure.phabricator.com/D11855
18 lines
531 B
PHP
Executable file
18 lines
531 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
// NOTE: This is substantially the same as the libphutil/ "launch_daemon.php"
|
|
// script, except it loads the Phabricator environment and adds some Phabricator
|
|
// specific flags.
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
$overseer = new PhutilDaemonOverseer($argv);
|
|
|
|
$bootloader = PhutilBootloader::getInstance();
|
|
foreach ($bootloader->getAllLibraries() as $library) {
|
|
$overseer->addLibrary(phutil_get_library_root($library));
|
|
}
|
|
|
|
$overseer->run();
|