bin/moleculer-runner.js
function startBroker() {
	let worker = cluster.worker;

	if (worker) {
		Object.assign(config, {
			nodeID: (config.nodeID || utils.getNodeID()) + "-" + worker.id
		});
	}

	// Create service broker
	broker = new Moleculer.ServiceBroker(Object.assign({}, config));

	loadServices();

	return broker.start()
		.then(() => {
			if (flags.repl && (!worker || worker.id === 1))
				broker.repl();
		});
}
function startBroker() {
	let worker = cluster.worker;

	if (worker) {
		Object.assign(config, {
			nodeID: (config.nodeID || utils.getNodeID()) + "-" + worker.id
		});
	}

	// Create service broker
	broker = new Moleculer.ServiceBroker(Object.assign({}, config));

	loadServices();

	return broker.start()
		.then(() => {
			if (flags.repl && (!worker || worker.id === 1))
				broker.repl();
		});
}
function startBroker ( ) { let worker = cluster . worker ; if ( worker ) { Object . assign ( config , { nodeID : ( config . nodeID || utils . getNodeID ( ) ) + "-" + worker . id } ) ; } // Create service broker broker = new Moleculer . ServiceBroker ( Object . assign ( { } , config ) ) ; loadServices ( ) ; return broker . start ( ) . then ( ( ) => { if ( flags . repl && ( ! worker || worker . id === 1 ) ) broker . repl ( ) ; } ) ; }
Start Moleculer broker
Start Moleculer broker