geoffmore / kuberized

Kuberize: the configuration of an application such that it can be deployed in kubernetes.
6 stars 0 forks source link

Terraria: Investigate Adding Lifecycle Hooks #3

Open geoffmore opened 5 years ago

geoffmore commented 5 years ago

Based on https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/, it would be nice to have a pre-stop.sh that saves the world data and performs a clean exit. Since Terraria, similar to Minecraft, uses a console for all of it's command, this may be a bit difficult.

geoffmore commented 5 years ago

Maybe a pipe may be the solution here... https://unix.stackexchange.com/questions/31824/how-to-attach-terminal-to-detached-process