summaryrefslogtreecommitdiff
path: root/recipes-support/softdog-mon/default
blob: d507357fad8959c3bda2d40ca9f5f444ef914c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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