Skip to content

Commit

Permalink
prevent leading dashes in autogenerated log/pid filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
bmount authored and mmalecki committed Nov 30, 2011
1 parent 76bea57 commit e7e8fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ forever.start = function (script, options) {
//
forever.startDaemon = function (script, options) {
options = options || {};
options.uid = options.uid || utile.randomString(4);
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');

Expand Down

0 comments on commit e7e8fdf

Please sign in to comment.