zigbee2mqtt/index.js
2018-05-17 17:20:46 +02:00

11 lines
211 B
JavaScript

const Controller = require('./lib/controller');
const controller = new Controller();
controller.start();
process.on('SIGINT', handleQuit);
function handleQuit() {
controller.stop(() => process.exit());
}