cluster-service
Advanced tools
Comparing version 0.5.9 to 0.5.10
@@ -50,2 +50,4 @@ var | ||
exports.on = require("./lib/on"); | ||
} else { | ||
exports.on = function() { }; | ||
} | ||
@@ -52,0 +54,0 @@ |
{ | ||
"name": "cluster-service", | ||
"version": "0.5.9", | ||
"version": "0.5.10", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Aaron Silvas", |
@@ -114,3 +114,3 @@ # cluster-service | ||
forked based on value of ```workerCount```. An object indicates one or more worker objects: | ||
```{ "worker1": { workers: "worker1.js", cwd: process.cwd(), count: 2, ready: true, restart: true } }```. | ||
```{ "worker1": { worker: "worker1.js", cwd: process.cwd(), count: 2, ready: true, restart: true } }```. | ||
This option is automatically set if run via command-line ```cservice "worker.js"``` if | ||
@@ -222,3 +222,3 @@ the ```.js``` extension is detected. | ||
require("cluster-service").start({ workers: { "async_worker.js": { ready: false } } }); | ||
require("cluster-service").start({ workers: { "async": { worker: "async_worker.js", ready: false } } }); | ||
@@ -225,0 +225,0 @@ Have the worker inform the master once it is actually ready: |
Sorry, the diff of this file is not supported yet
88456
1971