diff options
author | Michael Pratt <mcpratt@pm.me> | 2021-05-29 09:03:11 -0400 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2021-06-12 13:59:27 -1000 |
commit | b118aba8cbac58a45d4882cd79e18e56c3fbdc70 (patch) | |
tree | 8b97453a1ee6cc255b98dc43cdb94c93a8e47bee /package/base-files/files/sbin/pkg_check | |
parent | 5a66165cb1863693ce7901d153f5e41c91a130e1 (diff) | |
download | upstream-b118aba8cbac58a45d4882cd79e18e56c3fbdc70.tar.gz upstream-b118aba8cbac58a45d4882cd79e18e56c3fbdc70.tar.bz2 upstream-b118aba8cbac58a45d4882cd79e18e56c3fbdc70.zip |
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>
Diffstat (limited to 'package/base-files/files/sbin/pkg_check')
0 files changed, 0 insertions, 0 deletions