Sh3ll
OdayForums


Server : Apache
System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64
User : tradze ( 1001)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/tradze/www/node-socket/node_modules/forever-monitor/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/tradze/www/node-socket/node_modules/forever-monitor/lib/index.js
/*
 * index.js: Top-level include for the `forever-monitor` module.
 *
 * (C) 2010 Charlie Robbins & the Contributors
 * MIT LICENCE
 *
 */

const utils = require('./forever-monitor/utils')
const common = require('./forever-monitor/common');

exports.kill = common.kill;
exports.checkProcess = common.checkProcess;
exports.Monitor = require('./forever-monitor/monitor').Monitor;

//
// Expose version through `pkginfo`
//
exports.version = require('../package').version;

//
// ### function start (script, options)
// #### @script {string} Location of the script to run.
// #### @options {Object} Configuration for forever instance.
// Starts a script with forever
//
exports.start = function(script, options) {
  if (!options.uid) {
    options.uid = options.uid || utils.randomString(4).replace(/^\-/, '_');
  }

  return new exports.Monitor(script, options).start();
};

ZeroDay Forums Mini