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

Introduce Watchdog functionality #23

Open
npeditto opened this issue May 20, 2016 · 1 comment
Open

Introduce Watchdog functionality #23

npeditto opened this issue May 20, 2016 · 1 comment
Assignees

Comments

@npeditto
Copy link
Member

npeditto commented May 20, 2016

@gmerlino in a previuos beta release started to introduce a process control based on the linux watchdog daemon to keep alive the main process of lightning-rod. We should introduce this control mechanism.

@gmerlino
Copy link
Member

gmerlino commented Jun 7, 2016

This mechanism should be based on writing periodically to /dev/watchdog (abstract enough to be valid on many platforms, e.g. on the YUN there is only a software watchdog (kernel-side implementation as either a module or built-in), but on other devices the devicefile could be an abstraction of an hardware watchdog (obviously, more reliable), for instance we should check what is available on the Raspberry, whereas for Android it is overkill to reboot the device when LR stops working somehow, there we need to investigate other options (thus, another bug for that).

A daemon called watchdog is typically installed (on the YUN) which writes to the device.

We need to replace that one with LR, taking care of establishing a large enough interval to avoid endless looping, e.g., without enough time to intervene manually when the need arises, such as in the presence of showstopper bugs in deployed LR code.

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

No branches or pull requests

2 participants