feat(backend): MasterプロセスのPIDを書き出せるように (#11909)

This commit is contained in:
CyberRex
2023-09-27 09:32:36 +09:00
committed by GitHub
parent 2039e244c5
commit 5ad0906c89
3 changed files with 18 additions and 11 deletions

View File

@@ -63,6 +63,7 @@ export async function masterMain() {
showNodejsVersion();
config = loadConfigBoot();
//await connectDb();
if (config.pidFile) fs.writeFileSync(config.pidFile, process.pid.toString());
} catch (e) {
bootLogger.error('Fatal error occurred during initialization', null, true);
process.exit(1);