From 568b2b995735fdb4381509bb4b20b0795561fcd0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 20 Jul 2017 15:43:11 -0400 Subject: [PATCH] fixes #5780 --- loader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/loader.js b/loader.js index f897fd79ce..21510018b7 100644 --- a/loader.js +++ b/loader.js @@ -223,6 +223,7 @@ fs.open(path.join(__dirname, 'config.json'), 'r', function (err) { require('daemon')({ stdout: process.stdout, stderr: process.stderr, + cwd: process.cwd(), }); fs.writeFileSync(pidFilePath, process.pid);