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