Skip to content

Commit

Permalink
[minor] Create options.uid by default in .startDaemon() if it is …
Browse files Browse the repository at this point in the history
…already not provided
  • Loading branch information
indexzero committed Jul 3, 2011
1 parent dbf4275 commit 57bc396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ forever.start = function (script, options) {
// Starts a script with forever as a daemon
//
forever.startDaemon = function (script, options) {
options.uid = options.uid || forever.randomString(24);
options.logFile = forever.logFilePath(options.logFile || options.uid + '.log');
options.pidFile = forever.pidFilePath(options.pidFile || options.uid + '.pid');

Expand Down

0 comments on commit 57bc396

Please sign in to comment.