openwrt/package
Michael Pratt b118aba8cb base-files: upgrade: use procd to kill managed daemons
These processes are managed by procd and set to start again when killed
via the procd instance parameter "respawn" being set during init.

Example:
procd_set_param respawn 3600 1 0

When they are killed manually during sysupgrade,
they are started again in 5 seconds or less, depending on
how the "respawn" parameter is set.

Use procd through ubus to disable the instances that respawn them,
however, allow dnsmasq, netifd, and logd to restart for remote logging.

Properly closing all these processes increases free memory by about 3 MB,
which should help low memory devices upgrade without crashing.

For very low memory devices (set to 32 MB for now)
also kill dnsmasq, netifd, and logd for an additional 3 MB of free memory.

Also, bump sleep values to allow at least 10 seconds
for network interfaces and daemons
to come up after they are killed and restarted
before caches are dropped.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2021-06-12 13:59:27 -10:00
..
base-files base-files: upgrade: use procd to kill managed daemons 2021-06-12 13:59:27 -10:00
boot uboot-rockchip: add NanoPi R4S support 2021-06-10 10:34:44 +02:00
devel binutils: update to 2.35.2 2021-05-23 15:11:38 +02:00
firmware linux-firmware: update to 20210511 2021-06-08 00:38:41 +02:00
kernel package: fix cmake packages build with ninja 2021-06-12 10:46:39 +02:00
libs package: fix cmake packages build with ninja 2021-06-12 10:46:39 +02:00
network package: fix cmake packages build with ninja 2021-06-12 10:46:39 +02:00
system package: fix cmake packages build with ninja 2021-06-12 10:46:39 +02:00
utils ugps: update to git HEAD 2021-06-07 23:13:18 +01:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00