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!
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked a year ago
- asked 10 months ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago