NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
I have a clean-up script that I want to run when my codespace stops/is removed.
I tried to capture the exit signal /SIGTERM, this does not work unfortunately.
Is there a feature such as postStartCommand that can be used but when a codespace is stopped instead?
Something like preStopCommand?
This would be very handy, or please advise what sort of exit code to capture e.g.:
I have a clean-up script that I want to run when my codespace stops/is removed. I tried to capture the exit signal /SIGTERM, this does not work unfortunately. Is there a feature such as
postStartCommand
that can be used but when a codespace is stopped instead? Something likepreStopCommand
? This would be very handy, or please advise what sort of exit code to capture e.g.:Relates to: <Codespaces | Remote - Containers | Both>