|
|
@ -111,12 +111,13 @@ export class Microservice |
|
|
|
InternalService.start(); |
|
|
|
} |
|
|
|
} catch(e) { |
|
|
|
console.log("Failed to start the microservice"); |
|
|
|
console.error("Failed to start the microservice:", e); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
// Run the microservice
|
|
|
|
this.state = MicroserviceState.Running; |
|
|
|
process.on("SIGINT", this.quit.bind(this)); |
|
|
|
let exitCode = await new Promise<number>((resolve) => this.__quitHandler = resolve); |
|
|
|
|
|
|
|
// Shutdown the microservice
|
|
|
|