@@ -15,6 +15,8 @@ $cmd = $argv[1];
define('WORKERMAN_ROOT_DIR', realpath(__DIR__."/../")."/");
+chdir(WORKERMAN_ROOT_DIR);
+
// ==pid-file==
require_once WORKERMAN_ROOT_DIR . 'man/Core/Lib/Config.php';
Man\Core\Lib\Config::instance();
@@ -3,7 +3,7 @@ debug=1
;保存主进程pid的文件
pid_file=/var/run/php-server.pid
;日志文件目录
-log_dir=../logs/
+log_dir=./logs/
;共享内存及消息队列用到的key
ipc_key=0x70010a2e
;开启共享内存大小
@@ -115,11 +115,6 @@ class Monitor extends Man\Core\SocketWorker
// 安装信号
$this->installSignal();
- if(!is_dir(WORKERMAN_LOG_DIR . 'statistic'))
- {
- @mkdir(WORKERMAN_LOG_DIR . 'statistic', 0777);
- }
-
// 初始化任务
\Man\Core\Lib\Task::init($this->event);
\Man\Core\Lib\Task::add(self::CLEAR_LOGS_TIME_LONG, array($this, 'clearLogs'), array(WORKERMAN_LOG_DIR));