From: Peter Seiderer Date: Sat, 20 Feb 2021 16:33:48 +0000 (+0100) Subject: package/irqbalance: fix sysv startup script (add mkdir /run/irqbalance) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a95f38f306411ca750a676b81326dc7ec67bcaa;p=buildroot.git package/irqbalance: fix sysv startup script (add mkdir /run/irqbalance) - add mkdir -p /run/irqbalance to sysv startup script needed to create socket /run/irqbalance/irqbalance.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 Signed-off-by: Peter Seiderer [yann.morin.1998@free.fr: only create in start case] Signed-off-by: Yann E. MORIN --- diff --git a/package/irqbalance/S13irqbalance b/package/irqbalance/S13irqbalance index b06a3372e9..f6ed9291be 100644 --- a/package/irqbalance/S13irqbalance +++ b/package/irqbalance/S13irqbalance @@ -10,6 +10,8 @@ PID="/var/run/irqbalance.pid" case "$1" in start) printf "Starting irqbalance: " + # for irqbalance socket /run/irqbalance/irqbalance.sock + mkdir -p /run/irqbalance start-stop-daemon -S -q -x $EXEC -- $ARGS if [ $? != 0 ]; then echo "FAILED"