Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (17 sloc) 546 Bytes
#!/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');
Jump to Line
Something went wrong with that request. Please try again.