-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Shutdown tasks #607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried adding a script as a It works locally (to test I change the But when I attempt to build a GitPod workspace I get an error: I mention this because I'm happy to use a hack like this for a while, but I just can't figure out how to get it to work ... |
Hi Justin! Thx for bringing this up. Your I agree that it makes sense to have shutdown hooks. Using traps seems like a good workaround. Can you say which database you used and which command the database would have required to run for a clean shutdown? |
I too have a case where I'd like to run a command during container stop, so I can close down a database cleanly and avoid recovery steps being triggered on subsequent container start. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
duplicate of #3966 |
There doesn't seem to be a way to run scripts on container shutdown. I was running a database that was corrupted between restarts. I assume the process must have been killed before it could properly shutdown, but am not sure.
It would be nice if I could run a little bash script on shutdown that could gracefully stop this service.
The text was updated successfully, but these errors were encountered: