Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.546 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env node

var fs = require('fs');

if (process.send) {
  //
  // Supress `stdout` and `stderr` when `forever` is being run as a fork.
  // We use `child_process.fork` to daemonize `forever` processes, so
  // outputting anything isn't a desired situation.
  //
  var nullStream = fs.createWriteStream('/dev/null');
  var returner = function () {
    return nullStream;
  };
  process.__defineGetter__('stdout', returner);
  process.__defineGetter__('stderr', returner);
}

var forever = require('../lib/forever');
forever.cli.start();
Something went wrong with that request. Please try again.