Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Fix entrypoint trap handler #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jazy5552
Copy link

@Jazy5552 Jazy5552 commented Aug 7, 2022

Hi, just wanted to suggest a simple addition to this script which fixes the trap handler. Tail prevents the SIGTERM signal from being handled by the trap at the top of the script. By using wait, it ensures that the signal is caught and handled by the trap.

For reference on the tail -f thing: https://stackoverflow.com/questions/49507830/sigterm-signal-not-caught-when-the-last-process-is-tail

PS: this is my first time making a pull request so im sorry if im pushing to the wrong branch or something. just really love this docker image and wanted to help :)

tail prevents the SIGTERM signal from being handled by the trap at the top of the script. By using wait, it ensures that the signal is caught and handled by the trap.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant