mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
e4f49f0806
Summary: Ref T9640. See D17200 for the analogous change in libphutil. Test Plan: See D17200. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9640 Differential Revision: https://secure.phabricator.com/D17201
24 lines
640 B
PHP
Executable file
24 lines
640 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.
|
|
|
|
if (function_exists('pcntl_async_signals')) {
|
|
pcntl_async_signals(true);
|
|
} else {
|
|
declare(ticks = 1);
|
|
}
|
|
|
|
$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();
|