zigbee2mqtt/index.js
2018-04-18 18:26:13 +02:00

10 lines
210 B
JavaScript

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