aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd
diff options
context:
space:
mode:
authorDaniel Bailey <danielb@meshplusplus.com>2020-07-13 15:21:50 -0700
committerDaniel Golle <daniel@makrotopia.org>2020-07-14 00:25:02 +0100
commit5792f6a1043d686d4ee3c8b8f7ce070ac1bb3e5d (patch)
tree8cbf6bc709b6f172233c4f3778817100a024673f /package/system/procd
parent732b70c5bdce59507332cd51b55cd1c9e1b3c6b2 (diff)
downloadupstream-5792f6a1043d686d4ee3c8b8f7ce070ac1bb3e5d.tar.gz
upstream-5792f6a1043d686d4ee3c8b8f7ce070ac1bb3e5d.tar.bz2
upstream-5792f6a1043d686d4ee3c8b8f7ce070ac1bb3e5d.zip
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>
Diffstat (limited to 'package/system/procd')
-rw-r--r--package/system/procd/files/procd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index dd6dc1c58d..d86b7219da 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -247,7 +247,7 @@ _procd_set_param() {
env|data|limits)
_procd_add_table "$type" "$@"
;;
- command|netdev|file|respawn|watch)
+ command|netdev|file|respawn|watch|watchdog)
_procd_add_array "$type" "$@"
;;
error)
@@ -378,7 +378,7 @@ _procd_append_param() {
env|data|limits)
_procd_add_table_data "$@"
;;
- command|netdev|file|respawn|watch)
+ command|netdev|file|respawn|watch|watchdog)
_procd_add_array_data "$@"
;;
error)