YUKI Hiroshi
null+****@clear*****
Thu Apr 9 17:00:01 JST 2015
YUKI Hiroshi 2015-04-09 17:00:01 +0900 (Thu, 09 Apr 2015) New Revision: 5e7c016bda4455f8ce782bceea179b5dac53e00d https://github.com/droonga/droonga-http-server/commit/5e7c016bda4455f8ce782bceea179b5dac53e00d Message: Report error while the initialization process Modified files: bin/droonga-http-server Modified: bin/droonga-http-server (+8 -0) =================================================================== --- bin/droonga-http-server 2015-04-09 16:44:36 +0900 (d0d784f) +++ bin/droonga-http-server 2015-04-09 17:00:01 +0900 (8024f95) @@ -47,6 +47,8 @@ if (options.systemLogFile && options.systemLogFile != '-') { logger.transports.console.level = options.systemLogLevel.toLowerCase(); } +try { + if (options.pidFile) { options.pidFile = path.resolve(baseDir, options.pidFile); var fd = fs.openSync(options.pidFile, 'w', 0644); @@ -189,3 +191,9 @@ process.on('SIGTERM', function() { logger.info('Received a SIGTERM signal. Shutting down the server...'); shutdown(); }); + +} +catch(error) { + if (error) + logger.error(error); +} -------------- next part -------------- HTML����������������������������... Download