diff --git a/lib/forever/monitor.js b/lib/forever/monitor.js index 0519f6e8..7707cfac 100644 --- a/lib/forever/monitor.js +++ b/lib/forever/monitor.js @@ -219,6 +219,9 @@ Monitor.prototype.trySpawn = function () { this.spawnWith.command = this.command; if (this.forkShim) { + if (typeof this.forkShim === 'string') { + this.spawnWith.forkModule = this.forkShim; + } this.spawnWith.env['FORK_SHIM'] = true; return nodeFork.shim.fork(this.args[0], this.args.slice(1), this.spawnWith); }