hyperion-start / hyperion-core

A Tmux based System Startup Engine
GNU General Public License v3.0
8 stars 3 forks source link

Add Some Kind of Continuos Component Monitoring #16

Closed DavidPL1 closed 6 years ago

DavidPL1 commented 6 years ago

In order to detect a component crash and keep the displayed status updated

DavidPL1 commented 6 years ago

Idea: collect pids of started programs in a List, on init launch a daemon thread that reads the list and simply polls each pid. If it detects a process has ended, it will dispatch a crash event to all registered event queues (the GUI and the interactive cli are candidates to register a queue) and remove the pid from the list.

For remote components either poll via ssh + python or ssh + bash (preferably python for compatibility with windows?)

DavidPL1 commented 6 years ago

Closing since monitoring local and remote components and remote hosts is fully functional now with a working event queue.