Add exec to run script to run app as PID 1 #1200
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "TheEdgeOfRage/api:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When running the docker container, the sh script will run as PID 1 and intercept any external signals (like docker stop) and won't pass it on to the app. Docker will wait for 10 seconds before proceeding to force kill the app, leading to both an unclean shutdown and an unnecessary wait of 10 seconds.
The exec in the script replaces the shell process with the
su
process, which correctly passes on signals to the app process and triggers a regular shutdown when doing a docker stop.Checklist
mage do-the-swag
)config.yml.saml
and runningmage generate-docs
)I don't think any of these apply here, but please let me know if I need to do anything else :)
Add exec to run script to run as PID 1to Add exec to run script to run app as PID 1Thanks! I had this on my radar for a while but didn't get around to do it.