mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 10:28:33 -07:00
11 lines
211 B
JavaScript
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());
|
|
}
|