diff --git a/lib/process.js b/lib/process.js index 24817a1..29b5a6c 100644 --- a/lib/process.js +++ b/lib/process.js @@ -189,7 +189,7 @@ Process.prototype.listen = function() { misc.ensureDir(process.cwd() + '/pids', true); // Ensure pids dir misc.ensureDir(process.cwd() + '/logs'); // Ensure logs dir - fs.writeFileSync(self.options.pids + '/master.' + self.stats.pid + '.pid', self.stats.pid); + fs.writeFileSync(self.options.pids + '/master.pid', self.stats.pid); console.log('Master ' + process.pid + ' started'); // Fork workers