LinuxGSM-Docker icon indicating copy to clipboard operation
LinuxGSM-Docker copied to clipboard

Fix entrypoint trap handler

Open Jazy5552 opened this issue 1 year ago • 0 comments

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 :)

Jazy5552 avatar Aug 07 '22 16:08 Jazy5552