YUKI Hiroshi
null+****@clear*****
Fri Aug 29 15:40:54 JST 2014
YUKI Hiroshi 2014-08-29 15:40:54 +0900 (Fri, 29 Aug 2014) New Revision: 92d3ce1a0a6af85a2f833f4838f539f4f3bd90b8 https://github.com/droonga/droonga-http-server/commit/92d3ce1a0a6af85a2f833f4838f539f4f3bd90b8 Message: Resolve relative path Modified files: bin/droonga-http-server Modified: bin/droonga-http-server (+4 -1) =================================================================== --- bin/droonga-http-server 2014-08-29 15:40:25 +0900 (37316fb) +++ bin/droonga-http-server 2014-08-29 15:40:54 +0900 (b9c2a7f) @@ -126,7 +126,8 @@ if (options.daemon) { } var logger; -if (options.systemLogFile) { +if (options.systemLogFile && options.systemLogFile != '-') { + options.systemLogFile = path.resolve(baseDir, options.systemLogFile); logger = new winston.Logger({ transports: [ new winston.transports.File({ @@ -146,6 +147,7 @@ if (options.systemLogFile) { } if (options.pidFile) { + options.pidFile = path.resolve(baseDir, options.pidFile); var fd = fs.openSync(options.pidFile, 'w', 0644); fs.writeSync(fd, process.pid.toString()); } @@ -174,6 +176,7 @@ if (options.accessLogFile) { flags: 'a', mode: 0644 }; + options.accessLogFile = path.resolve(baseDir, options.accessLogFile); accessLogStream = fs.createWriteStream(options.accessLogFile, accessLogStreamOptions); } -------------- next part -------------- HTML����������������������������... Download