- requires
- name
- provider
- factory
- service
- value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foreverMonit = require('forever-monitor'); | |
var forever = require('forever'); | |
var child = new (foreverMonit.Monitor)('./toto.js', { | |
max: 3, | |
silent: false, | |
options: [], | |
sourceDir : '.', | |
pidFile : 'pid/app.pid' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = '/home/tknew/.forever/out-probe2.log'; | |
var colors = [ | |
'\x1B[34m', | |
'\x1B[36m', | |
'\x1B[32m', | |
'\x1B[35m', | |
'\x1B[31m', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.smartjava.org/content/html5-easily-parallelize-jobs-using-web-workers-and-threadpool | |
function Pool(size) { | |
var _this = this; | |
// set some defaults | |
this.taskQueue = []; | |
this.workerQueue = []; | |
this.poolSize = size; | |
OlderNewer