Hi there,
There are some issues with entrypoint.sh file. Due to the way it is made, the Redis server is started as a child of process 1. When a SIGTERM comes, the PID 1 closed but do not pass the SIGTERM to children PIDs. I think this is what the author wanted to do with the usage of dumb-init.
So, there are two ways to fix this.
- complicated: use traps and pass SIGTERM to children processes
- simple: change the following:
- #! /usr/bin/dumb-init /bin/sh to #!/bin/sh
- ${CMD} \' to exec ${CMD} `
If two is implemented, we can see the exit message "Redis is now ready to exit, bye bye..."
Best of luck
Reactions are currently unavailable
Hi there,
There are some issues with entrypoint.sh file. Due to the way it is made, the Redis server is started as a child of process 1. When a SIGTERM comes, the PID 1 closed but do not pass the SIGTERM to children PIDs. I think this is what the author wanted to do with the usage of dumb-init.
So, there are two ways to fix this.
If two is implemented, we can see the exit message "Redis is now ready to exit, bye bye..."
Best of luck