Skip to content

Commit

Permalink
Merge pull request #533 from Kontakter/master
Browse files Browse the repository at this point in the history
Allow to get logFile and pidFile from config
  • Loading branch information
julianduque committed Apr 24, 2014
2 parents 8fd4699 + 23a217c commit 09c4362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/forever.js
Expand Up @@ -392,8 +392,8 @@ forever.start = function (script, options) {
forever.startDaemon = function (script, options) {
options = options || {};
options.uid = options.uid || utile.randomString(4).replace(/^\-/, '_');
options.logFile = forever.logFilePath(options.logFile || options.uid + '.log');
options.pidFile = forever.pidFilePath(options.pidFile || options.uid + '.pid');
options.logFile = forever.logFilePath(options.logFile || forever.config.get('logFile') || options.uid + '.log');
options.pidFile = forever.pidFilePath(options.pidFile || forever.config.get('pidFile') || options.uid + '.pid');

var monitor, outFD, errFD, workerPath;

Expand Down

0 comments on commit 09c4362

Please sign in to comment.