From 991bce55e69e5f3b1a3e513b4903f4f6ce47501a Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 19 Jan 2021 11:42:15 -0600 Subject: Add softdog-mon for customer suppot --- recipes-support/softdog-mon/default | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 recipes-support/softdog-mon/default (limited to 'recipes-support/softdog-mon/default') 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 + -- cgit v1.2.3