zigbee2mqtt/index.js

10 lines
210 B
JavaScript
Raw Normal View History

2018-04-18 09:25:40 -07:00
const Controller = require('./lib/controller');
2018-04-09 08:37:21 -07:00
2018-04-18 09:25:40 -07:00
const controller = new Controller();
controller.start();
2018-04-14 07:17:25 -07:00
2018-04-08 06:33:47 -07:00
process.on('SIGINT', handleQuit);
2018-04-08 06:00:36 -07:00
2018-04-08 06:33:47 -07:00
function handleQuit() {
2018-04-18 09:25:40 -07:00
controller.stop(() => process.exit());
}