-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Enable Hardware Watchdog of the pi #50
Comments
This is the job for the operating system itself - you can enable OTOH, it would be nice if openHAB implented sd_notify() support, with application level watchdog. |
@zdzichu the first part of your answer would be something in the scope of openHABian. I'd be careful with adding all kinds of things, just because we can. The reason for adding a watchdog are not yet clear to me. I did not yet experience nor hear of an openHAB freeze/crash and if any part of the RPi hardware is unstable, it's probably wise to take care of that issue instead of automatically restarting (unnoticed). Please enlighten me if I'm wrong. 😉 Regarding |
Hi, First, I'm sorry. I misread this bugreport, thinking it is about openHAB itself. It is not, this is a bugreport about openhabian. In such case, enabling system-wide watchdog in systemd is a good idea, and setting Now, answering to your question, Thom. Adding application-level watchdog is done to make sure application always run, and is restarted if hangs. But in case of openHAB this won't help. During few years of using openHAB, I never saw it hang. Is is so stable, there's noting to improve here :) Adding application watchdog is often tiny addition on top of basic systemd-notify implementation. This protocol is mainly for: a) informing systemd that application started and is ready to work; b) providing extended status info for administrator to see. Implementation of systemd notify protocol is very simple, see here for example: https://github.com/faljse/SDNotify . But, having said all above, I don't see any obvious advantages of doing this in openHAB. It would be nice, but there is no great improvement to gain. |
Thanks for the exhaustive explanation! I'll tag @kaikreuzer If you think an integration would give us certain benefits or new possibilities, you could create a PR! ;) |
I can actually think of a simple use case. The method |
My openhabian which is a very early version, hangs like every 2 month or so(I think this is due to the DMX binding or http binding). I have solved it by physically solder a switch to the power supply! This way my guest can easily restart it when needed. |
already tagged "wontfix" and no news in 2,5yrs so I guess we should close this. |
I'm not sure if the built in hardware watchdog of the pi is enabled (default = off), e.g. when openHAB isn't responding any more or something else gets instable.
If not already done, you should think about enabling the hw wd.
The text was updated successfully, but these errors were encountered: