4 // NOTE: This is substantially the same as the libphutil/ "launch_daemon.php"
5 // script, except it loads the Phabricator environment and adds some Phabricator
8 if (function_exists('pcntl_async_signals')) {
9 pcntl_async_signals(true);
14 $root = dirname(dirname(dirname(__FILE__
)));
15 require_once $root.'/scripts/__init_script__.php';
17 $overseer = new PhutilDaemonOverseer($argv);
19 $bootloader = PhutilBootloader
::getInstance();
20 foreach ($bootloader->getAllLibraries() as $library) {
21 $overseer->addLibrary(phutil_get_library_root($library));