1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 1 1 1 1 | /**! * monitor process * * Copyright(c) fengmk2 and other contributors. * MIT Licensed * * Authors: * fengmk2 <[email protected]> (http://fengmk2.com) */ 'use strict'; /** * Module dependencies. */ console.log('monitor:%d start with %j, running_under_istanbul: %s', process.pid, process.argv, process.env.running_under_istanbul); process.on('message', function (msg) { console.log('[monitor] got message from master: %j', msg); process.send({ from: 'monitor', type: 'confirm', id: msg.id }); }); |