Skip to content

inject signal to running container like sigterm #1560

Answered by dimakuv
tiagorvmartins asked this question in Q&A
Discussion options

You must be logged in to vote

This all shouldn't matter for Gramine. If you specify sys.enable_sigterm_injection = true in the manifest file, it will work. The additional layers (Docker GSC container, the apploader.sh script) should be irrelevant.

UPDATE: I see the problem now. This SO discussion is very useful: https://unix.stackexchange.com/questions/146756/forward-sigterm-to-child-in-bash.

According to the discussion, there are two ways to fix the problem:

  1. Use the "bash signal trap" solution: https://unix.stackexchange.com/a/146770
  2. Use the exec solution: https://unix.stackexchange.com/a/196053

Our apploader.sh from GSC doesn't use any of these two unfortunately:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tiagorvmartins
Comment options

@tiagorvmartins
Comment options

@dimakuv
Comment options

Answer selected by tiagorvmartins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants