procd: allow optional watchdog instance parameter
authorDaniel Bailey <danielb@meshplusplus.com>
Mon, 13 Jul 2020 22:21:50 +0000 (15:21 -0700)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 23:25:02 +0000 (00:25 +0100)
commit5792f6a1043d686d4ee3c8b8f7ce070ac1bb3e5d
tree8cbf6bc709b6f172233c4f3778817100a024673f
parent732b70c5bdce59507332cd51b55cd1c9e1b3c6b2
procd: allow optional watchdog instance parameter

Optional instance watchdog timeout and watchdog mode can be set by
adding: procd_set_param $mode $timeout

$mode is an integer [0-1] representing instance watchdog mode of
operation:
0 = disabled
1 = passive mode, client must periodically poke watchdog via ubus

$timeout is an integer representing how often, in seconds, the watchdog must be poked.

Signed-off-by: Daniel Bailey <danielb@meshplusplus.com>
package/system/procd/files/procd.sh