Closed rubiojr closed 4 years ago
Thinking about this a bit more, maybe this should rather be core functionality instead of a bee?
Thinking about this a bit more, maybe this should rather be core functionality instead of a bee?
Yeah, I thought about it, but given that multi OS support for this would be challenging I opted for this approach.
If you'd like to see this integrated into the core, conditionally enabling it when systemd is detected, I'd be happy to give it a try, it'd definitely make automatic configuration easier.
We could solve that in a similar fashion as we only include some hives on particular platforms (hives_linux.go
etc). I think it makes sense to move this to core, but maybe a systemd bee could still be cool: maybe we can trigger events when services are changing state, like (re)starting or stopping?
We could theoretically also start / stop services, even though we'd usually be limited to interacting with user services (we're not running as root
after all).
Good ideas. I’ll start by abstracting the watchdog so we can add it to the core.
https://github.com/muesli/beehive/pull/275 was merged so closing this.
Beehive integration with Systemd's watchdog.
Linux only.
http://0pointer.de/blog/projects/watchdog.html