Skip to contentSkip to conversation

package/irqbalance: fix systemd startup script (add RuntimeDirectory)

Buildroot Peter Korsgaard 1 participant 1 message Feb 27, 2021

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=1697a41e731000b78b2fc8593bd6cfab657fac2d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.11.x

- add RuntimeDirectory=irqbalance to create /run/irqbalanace needed to create socket /run/irqbalance/irqbalance<pid>.sock

Fixes:

- Bug 13541 [1]

/usr/sbin/irqbalance[158]: Daemon couldn't be bound to the file-based socket.

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

(cherry picked from commit 60518c1d7680bff5efe879ee86f48e6092239c03)
---
 package/irqbalance/irqbalance.service | 1 +
 1 file changed, 1 insertion(+)
package/irqbalance/irqbalance.service +1 -0
index 9ba3be43bb..39574877fb 100644
@@ -3,6 +3,7 @@ Description=irqbalance daemon
 After=syslog.target
 
 [Service]
+RuntimeDirectory=irqbalance
 ExecStart=/usr/sbin/irqbalance --foreground
 
 [Install]