service instance: Improve handling of watchdog config changes
authorTim Nordell <tnordell@airgain.com>
Wed, 15 Oct 2025 20:52:04 +0000 (15:52 -0500)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 9 Feb 2026 11:31:44 +0000 (11:31 +0000)
commitafa4391d9cbb0706bbae9c8345436fa6d99c3013
tree578e574054d1e962a6c6deb74ca28c7cc8a75a56
parent52c64d24ce9cf255b9c348e5db118a35c9407d75
service instance: Improve handling of watchdog config changes

When the ubus call "ubus call service watchdog" is used, it's expected
that the service might change its watchdog values during runtime when
it pets the watchdog.  The instance restarting behavior was setup though
to restart the instance if these changed.  This causes any service which
adjusts its watchdog to be restarted via "/etc/init.d/SERVICENAME start"
which is probably not what was intended.

Introduce a new variable, self_managed, if the service adjusted these
values at runtime so that a "start" doesn't cause the entire service to
restart.

Signed-off-by: Tim Nordell <tnordell@airgain.com>
service/instance.c
service/instance.h
service/service.c