This commit is contained in:
Aya Morisawa 2016-12-31 03:14:38 +09:00
parent 3d4b119222
commit 2fd6ddf8ee

View File

@ -166,6 +166,8 @@ async function init(): Promise<State> {
machineLogger.info(`CPU: ${os.cpus().length}core`); machineLogger.info(`CPU: ${os.cpus().length}core`);
machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`); machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
new DependencyChecker().checkAll();
let configLogger = new Logger('Config'); let configLogger = new Logger('Config');
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) { if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
configLogger.error('Configuration not found'); configLogger.error('Configuration not found');
@ -175,7 +177,6 @@ async function init(): Promise<State> {
configLogger.info('Successfully loaded'); configLogger.info('Successfully loaded');
configLogger.info(`maintainer: ${config.maintainer}`); configLogger.info(`maintainer: ${config.maintainer}`);
new DependencyChecker().checkAll();
if (process.platform === 'linux' && !isRoot() && config.port < 1024) { if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
Logger.error('You need root privileges to listen on port below 1024 on Linux'); Logger.error('You need root privileges to listen on port below 1024 on Linux');