Skip to content

Commit

Permalink
Allow to get logFile and pidFile from config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kontakter committed Feb 15, 2014
1 parent b873164 commit af83c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
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.store.logFile || options.uid + '.log');
options.pidFile = forever.pidFilePath(options.pidFile || forever.config.store.pidFile || options.uid + '.pid');

var monitor, outFD, errFD, workerPath;

Expand Down

0 comments on commit af83c0e

Please sign in to comment.