package/irqbalance: fix sysv startup script (add mkdir /run/irqbalance)
authorPeter Seiderer <ps.report@gmx.net>
Sat, 20 Feb 2021 16:33:48 +0000 (17:33 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 20 Feb 2021 17:36:39 +0000 (18:36 +0100)
- add mkdir -p /run/irqbalance to sysv startup script needed to
  create socket /run/irqbalance/irqbalance<pid>.sock

Fixes:

  - Bug 13541 [1]

  daemon.warn /usr/sbin/irqbalance: Daemon couldn't be bound to the file-based socket.

[1] https://bugs.busybox.net/show_bug.cgi?id=13541

Reported-by: Alfredo Pons Menargues <alfredo.pons@gmail.com>
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[yann.morin.1998@free.fr: only create in start case]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/irqbalance/S13irqbalance

index b06a3372e987409c64d6c1d4c40014436a4a25e6..f6ed9291be3f10289c15c753cc3afa67b0c03a60 100644 (file)
@@ -10,6 +10,8 @@ PID="/var/run/irqbalance.pid"
 case "$1" in
     start)
        printf "Starting irqbalance: "
+       # for irqbalance socket /run/irqbalance/irqbalance<pid>.sock
+       mkdir -p /run/irqbalance
        start-stop-daemon -S -q -x $EXEC -- $ARGS
        if [ $? != 0 ]; then
            echo "FAILED"