irqbalance: fix socket directory and create it
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 17 Jun 2020 20:29:13 +0000 (23:29 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Wed, 17 Jun 2020 20:29:13 +0000 (23:29 +0300)
commit4f0c847828b9602d12d13059a5e8bb159120dcb7
tree1471841fce58618523098f06429e6d929a7e7c6c
parentc8187f7f16e6fbbe396bfb25061f93a55a9bfa5b
irqbalance: fix socket directory and create it

Irqbalance defines /run/irqbalance dir for its socket
communication between irqbalance and its UI. /run does not exist
in OpenWrt (although it is defined by the Linux FHS), so the
socket creation fails. Although we do not compile UI and thus
the issue is not critical to us, fix the directory location.

Additionally, the creation is originally handled by a systemd
init script that we do not use.

* patch source to define dir as /var/run/irqbalance
* create the dir in the procd init script.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
utils/irqbalance/Makefile
utils/irqbalance/files/irqbalance.init
utils/irqbalance/patches/110-fix-runtime-socket-directory.patch [new file with mode: 0644]