I have a multi container project that has a physical power-off button that takes advantage of the
dt-overlay = gpio-shutdown allowing the default GPIO3 pin to signal power-on / power-off to the raspberrypi.
This configuration was working well for some time it would shut-off the raspberrypi and send the proper SIGTERM to the containers.
However I recently refreshed my projects with newer base images migrating from node 10 to node 12. (I’m unsure if this is the cause) or a change to balenaOS.
My containers are not receiving a SIGTERM when the shutdown is initiated. However if I shutdown or reboot via supervisor a proper SIGTERM is being sent. It is only when the GPIO initiated shutdown is used I do not receive the proper SIGTERM.
The raspberrypi however does shutdown and turn on with GPIO3.
Any help would be appreciated.