xaptum / xaptum-buildroot

External Buildroot tree for Xaptum hardware
GNU General Public License v2.0
0 stars 0 forks source link

Patch connman to support reloading configs on SIGHUP #142

Closed drbild closed 4 years ago

drbild commented 4 years ago

The inotify system used by connman to observe changes to config files does not work with symlinks. To work around this, captived is currently restarting connman after each config change. However, this causes the wifi connection to bounce, even if the preferred network hasn't changed.

These patches teach connman to reload the config files when sent a SIGUP signal. captived can send this signal after changing the config, rather than fully restarting connman, avoiding the network bounces.

drbild commented 4 years ago

Yeah, the deploy tasks fail when the disk on our Mender server fills up. I had to delete some of the old artifacts and re-ran those tasks.

drbild commented 4 years ago

Me neither. Unfortunately the comment in the original connman code wasn't enough for me to understand. So I just left that as is...