Skip to content
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

Override container exit with environment variable #268

Closed
shawaj opened this issue Dec 5, 2021 · 2 comments
Closed

Override container exit with environment variable #268

shawaj opened this issue Dec 5, 2021 · 2 comments

Comments

@shawaj
Copy link
Member

shawaj commented Dec 5, 2021

With the previous hm-gwmfr container we had the ability to stop the container from exiting using an environment variable:

https://github.com/NebraLtd/hm-gwmfr/blob/1abdf511c71a59a8c24b411f32a7b2117e17b5da/eccProg.py#L72-L78

We need to add this to hm-diag so we can fix the ECC key remotely on devices with errors

Also look at PREVENT_START_GATEWAYCONFIG and see if that pattern will work here.

@shawaj
Copy link
Member Author

shawaj commented Dec 15, 2021

This is partially solved by #270

@shawaj
Copy link
Member Author

shawaj commented Jun 6, 2023

We have this now with PREVENT_START_DIAG set to 1

prevent_start="${PREVENT_START_DIAG:-0}"

Just needs documenting in #504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant