Skip to content

Commit

Permalink
[fix] Manually merge #405. Fixes #405.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Apr 21, 2013
1 parent d3675fa commit bd42888
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 @@ -810,7 +810,7 @@ forever.cleanLogsSync = function (processes) {
// Determines the full logfile path name
//
forever.logFilePath = function (logFile, uid) {
return logFile && logFile[0] === '/'
return logFile && (logFile[0] === '/' || logFile[1] === ':')
? logFile
: path.join(forever.config.get('root'), logFile || (uid || 'forever') + '.log');
};
Expand All @@ -821,7 +821,7 @@ forever.logFilePath = function (logFile, uid) {
// Determines the full pid file path name
//
forever.pidFilePath = function (pidFile) {
return pidFile && pidFile[0] === '/'
return pidFile && (pidFile[0] === '/' || pidFile[1] === ':')
? pidFile
: path.join(forever.config.get('pidPath'), pidFile);
};
Expand Down

0 comments on commit bd42888

Please sign in to comment.