start(); search\area_library::instance(); if(StatesHelper::fetch_state('init')) { Log::record("StatesHelper::fetch_state first.",Log::DEBUG); search\searcher::instance()->init(); } process_looper::instance()->init(new search\processor()); process_looper::instance()->add_listen($sockfd); process_looper::instance()->run_loop(); } global $config; $host = '0.0.0.0'; $port = $config['searcher']['port']; Log::record("Search server is starting....",Log::DEBUG); event\util::fork_listen($host,$port,'searchwork',1);