procd: add service instance watchdog
authorDaniel Bailey <danielb@meshplusplus.com>
Mon, 13 Jul 2020 22:05:31 +0000 (15:05 -0700)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 13 Jul 2020 23:16:09 +0000 (00:16 +0100)
commitb2230e4ff28b29472d0a232fee5d9f4168390b52
tree69745db88e4eaca96c1143a7b188db8d88c6796b
parent639df57cec10c7edeb585444c23f8a4565e46f4a
procd: add service instance watchdog

Added instance watchdog which will eventually either terminate
or respawn an instance depending on the instance respawn setting.

Added service ubus method 'watchdog' which services the watchdog
timer and allows update of the instance watchdog mode instance.

Two modes: disabled or passive.

Disabled: cancels watchdog timer set for a given instance.

Passive: sets a instance timer which must be serviced or the
instance will be stopped/restarted (dependent upon the instance
respawn value) when the timer expires.

Signed-off-by: Daniel Bailey <danielb@meshplusplus.com>
service/instance.c
service/instance.h
service/service.c