- 最新
- 最多得票
- 最多評論
Hi Mike,
Thanks for using Greengrass V2, and sorry about the delay. Have you tried the lifecycle command called 'Recover' that you can add to your recipe and it will automatically run when your run command exits with an error, so in order to trigger it, you will need to ensure that your run command, which might be docker run
command exits with code 1 when there's an issue
Thanks,
Shagupta
Forgot to link documentation earlier https://docs.aws.amazon.com/greengrass/v2/developerguide/component-recipe-reference.html#recipe-format
Shagupta - thanks for the reply! That's the path we're currently using along with the --restart flag in Docker directly. We've overloaded the "Run" script by using multiple commands, separating them with ';', and also including &&/|| expressions but this seems to be working.
Thanks again!
相關內容
- 已提問 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 10 個月前