summaryrefslogtreecommitdiff
path: root/recipes-support/softdog-mon/default
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-01-19 11:42:15 -0600
committerJohn Klug <john.klug@multitech.com>2021-01-19 11:42:15 -0600
commit991bce55e69e5f3b1a3e513b4903f4f6ce47501a (patch)
treeb1a2774d2493ea1461751b7a7e082f8e46209909 /recipes-support/softdog-mon/default
parent59ab1da5ab2f76a8dcc72d9fc6de55b3d6800bd8 (diff)
downloadmeta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.tar.gz
meta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.tar.bz2
meta-mlinux-991bce55e69e5f3b1a3e513b4903f4f6ce47501a.zip
Add softdog-mon for customer suppot
Diffstat (limited to 'recipes-support/softdog-mon/default')
-rwxr-xr-xrecipes-support/softdog-mon/default52
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
+