'use strict' ; import 'app-module-path/register' ; import { ServiceInstance } from 'serviceinstance' ; const instance = new ServiceInstance ( ) ; instance . listen ( ) ; process . on ( 'SIGINT' , ( ) => { void instance . stop ( ) ; } ) . on ( 'SIGTERM' , ( ) => { void instance . stop ( ) ; } ) ;