v1.18.x
Julian Lam 8 years ago
parent 72fb92fa96
commit 568b2b9957

@ -223,6 +223,7 @@ fs.open(path.join(__dirname, 'config.json'), 'r', function (err) {
require('daemon')({ require('daemon')({
stdout: process.stdout, stdout: process.stdout,
stderr: process.stderr, stderr: process.stderr,
cwd: process.cwd(),
}); });
fs.writeFileSync(pidFilePath, process.pid); fs.writeFileSync(pidFilePath, process.pid);

Loading…
Cancel
Save