Automatically resurrect processes based on heartbeat signal
It's easy to detect process crash, but hard to detect when it hangs without quitting. Resurrector uses heartbeat through OSC to automatically restart process that stopped responding.
npm install -g resurrector
port- OSC port that resurrector listens on (defaults to
interval- how often resurrector checks for heartbeat (defaults to
path- OSC path to send heartbeat on (defaults to
processes- array of processes to start
id- process name, required
cmd- command to run
timeout- how long to wait before restarting
Each of the running processes should periodically ping resurrector with OSC message on specified port and path, sending the process id (from config) as only parameter.
So for the sample config, process 1 sends:
/hb/ "app 1" on OSC
4000, and process 2 sends:
/hb/ "app 2" on OSC