pimatic-watchdog-unix by Lukas Reinhart (thex) | github | npm
Pimatic Watchdog Unix plugin
This plugin adds a simple watchdog to pimatic for unix based systems (as it is using bash)
It can do the following:
- Check if pimatic process is still running
- Check if pimatic is still reachable via webinterface
- Restart pimatic if one of the above fails
- Reboot the machine if restart of pimatic fails
Example config.json entries:
{
"plugin": "watchdog-unix",
"processEnabled": true,
"httpURL": "http://127.0.0.1:80/",
"httpEnabled": true,
"active": true
},
Plugin Config Options
Options for watchdog unix plugin.
Option | Description | Default |
---|
processScriptName string | Name of the script used to start pimatic (normally pimatic.js) | "pimatic.js" |
processEnabled boolean | Enable/disable process running check | false |
httpURL string | URL to use for http/https request | "http://127.0.0.1:80/" |
httpTimeout number | Timeout for the http request (seconds) | 60 |
httpEnabled boolean | Enable/disable http request check | false |
watchdogCycleTime number | Watchdog cycle time (seconds) | 30 |
watchdogRetries number | Number of retries to start pimatic after a hang/crash | 3 |
watchdogEnableReboot boolean | Enable/disable reboot after retry limit was exceeded | false |
pimatic-watchdog-unix is written by Lukas Reinhart (thex)