diff options
Diffstat (limited to 'recipes-support/softdog-mon/default')
-rwxr-xr-x | recipes-support/softdog-mon/default | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-support/softdog-mon/default b/recipes-support/softdog-mon/default new file mode 100755 index 0000000..d507357 --- /dev/null +++ b/recipes-support/softdog-mon/default @@ -0,0 +1,52 @@ +# Monitor program will have 1 second granularity. Fixed. +# All times are in seconds. + +ENABLED="YES" + +# Hardware watchdog is found first, which is watchdog0. +WATCHDOGDEV=/dev/watchdog1 + +# Nice value -20, is highest priority for a user program, 19 is lowest. +NICE="-20" + +# Watchdog timeout in seconds +TIMEOUT=60 + + +# Environment + +PIDFILE="/run/softdog-mon.pid" + +# How often to feed in seconds +FEED=10 + +# File is synchonously open/read/written/closed every 300 seconds +FILESAMPLERATE=300 + +# File to be read/written +# If I/O hangs, the TIMEOUT value is the maximum seconds until we +# reset the device. +MONITORFILE=/media/card/.softdog_monitor + +# Minimum available system memory in bytes +MINIMUM_AVAILABLE_MEM=3000000 +MINIMUM_FREEHIGH=0 + +# Rate at which we sample available memory +MEMSAMPLERATE=3 + +# last samples saved +MEMSAMPLES=100 + +# maximum number of samples failed in last samples saved +MEMFAILEDSAMPLES=20 + +# Allow time for flash upgrade during shudown +SHUTDOWNTIMEOUT=600 + +export PIDFILE +export FEED FILESAMPLERATE MONITORFILE +export MINIMUM_AVAILABLE_MEM MINIMUM_FREEHIGH +export MEMSAMPLERATE MEMSAMPLES MEMFAILEDSAMPLES +export SHUTDOWNTIMEOUT + |