Hello, I know this entry is probably a little hard to follow, but I really need to figure out this problem, so all the help I get is much appreciated!
Hello, I have an application (dockerized component of the bigger balena app) that needs to receive a SIGTERM to shut stuff down in an orderly manner.
Previously, I was wrapping my application: “ABC” in a bash startup script. From suggestion here on the forum, I added code to catch the signal and pass it along to the ABC process.
It does seem to be recieved by the hostOS, it does seem as through something has happened… But, I never saw code trigger. I since have tried running my application with:
CMD ["/usr/local/bin/ABC"] and i tried
and others, but I still do NOT see the ABC process receive the SIGTERM signal, assuming that if I start ABC without the bash shell ABC would receive the SIGTERM directly.
Nothing I have tried seems to get the SIGTERM to the ABC process.
If I send a SIGTERM directly to the ABC process: 'kill -15 , I do indeed see that it has received the SIGTERM and then terminates properly.