I restarted my Docker server multiple times and found out that sonos2mqtt is long to stop.
After verification, I can't find "Shutdown sonos2mqtt, please wait." in the log.
After verification, It seems sonos2mqtt is only listening for SIGINT signal : https://github.com/svrooij/sonos2mqtt/blob/46bf61e089b77337baa287f22cd419b2bfaf3c49/src/index.ts#L18
BUT Docker start by sending a SIGTERM, then 10 sec later a SIGKILL.
First Question : do you have this kind of delay when it is deployed without Docker.
Second Question : Do you want me to investigate further and make a PR to solve this.
I restarted my Docker server multiple times and found out that sonos2mqtt is long to stop. After verification, I can't find "Shutdown sonos2mqtt, please wait." in the log. After verification, It seems sonos2mqtt is only listening for SIGINT signal : https://github.com/svrooij/sonos2mqtt/blob/46bf61e089b77337baa287f22cd419b2bfaf3c49/src/index.ts#L18 BUT Docker start by sending a SIGTERM, then 10 sec later a SIGKILL.
First Question : do you have this kind of delay when it is deployed without Docker. Second Question : Do you want me to investigate further and make a PR to solve this.
Thanks