Signals and balenaOS containers/services

This discussion of signals and processes has the following suggestions:

  • Use the exec/JSON array form of ENTRYPOINT .
  • Use exec in shell entrypoints.
  • Don’t pipe your application’s output.
  • Avoid being PID 1.
  • Listen for SIGTERM or set STOPSIGNAL in your Dockerfile.

Do these suggestions apply to our balenalib based containers?

Hi Jason,
thanks for posting that article - a very good explanation of the issues around signal handling in docker. I am pretty sure this applies to balena as well although I would have to talk to the developers for some of the details.
Regards Thomas