openwrt/package/base-files/files
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
..
bin base-files: simplify setting device MAC 2021-05-28 15:35:32 +02:00
etc Revert "base-files: migrate old UCI network bridge ports syntax" 2021-05-20 12:25:25 +02:00
lib base-files: upgrade: use procd to kill managed daemons 2021-06-12 13:59:27 -10:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: add logging for configuration import 2021-03-21 22:45:20 +01:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00