Path: blob/master/scripts/daemon/launch_daemon.php
12241 views
#!/usr/bin/env php1<?php23// NOTE: This is substantially the same as the libphutil/ "launch_daemon.php"4// script, except it loads the Phabricator environment and adds some Phabricator5// specific flags.67if (function_exists('pcntl_async_signals')) {8pcntl_async_signals(true);9} else {10declare(ticks = 1);11}1213$root = dirname(dirname(dirname(__FILE__)));14require_once $root.'/scripts/__init_script__.php';1516$overseer = new PhutilDaemonOverseer($argv);1718$bootloader = PhutilBootloader::getInstance();19foreach ($bootloader->getAllLibraries() as $library) {20$overseer->addLibrary(phutil_get_library_root($library));21}2223$overseer->run();242526