diff --git a/lib/forever.js b/lib/forever.js index 290be831..90b42911 100644 --- a/lib/forever.js +++ b/lib/forever.js @@ -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;