How to use the forever-monitor.Monitor.prototype function in forever-monitor

To help you get started, we’ve selected a few forever-monitor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deployd / deployd / lib / monitor.js View on Github external
Monitor.prototype.start = function (fn) {
  var start = ForeverMonitor.prototype.start  
    , monitor = this
    , restarting = arguments[0] === true
    , startCallback = this.startCallback;

  if(typeof fn === 'function') {
    startCallback = this.startCallback = fn;
    start.call(this);
  } else {
    start.apply(this, arguments);
  }
  
  if(!(this.child.stdout && this.child.stderr)) {
    this.child.stdout = process.stdout;
    this.child.stderr = process.stderr;
  }

forever-monitor

Core forever process monitor

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis