procd: add full service shutdown prior to sysupgrade
authorJohn Crispin <john@phrozen.org>
Fri, 12 Nov 2021 18:59:29 +0000 (19:59 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 23 Nov 2021 13:56:47 +0000 (13:56 +0000)
commit87b583635475c56ae5b8ec89233f6f292ba09765
treee6eca305ab9a8533104c1332339e282529b04a0d
parentbf3fe0e8c02ff13171ea9f2a79703abc099105bf
procd: add full service shutdown prior to sysupgrade

Currently OpenWrt will use the kill loop in stage2 to stop tasks. This can
fail as seen with wpa_supplicant not properly shutting down with certain
mesh configurations. Trigger the existing service_stop() code path for all
services just before exec'ing to upgraded.

Signed-off-by: John Crispin <john@phrozen.org>
[make use of *_safe function now introduced for that purpose, also stop
container instances]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
service/service.c
service/service.h
system.c