-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
utils/irqbalance/patches/110-fix-runtime-socket-directory.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/irqbalance.h | ||
+++ b/irqbalance.h | ||
@@ -158,7 +158,7 @@ extern unsigned int log_mask; | ||
#endif /* HAVE_LIBSYSTEMD */ | ||
|
||
#define SOCKET_PATH "irqbalance" | ||
-#define SOCKET_TMPFS "/run/irqbalance/" | ||
+#define SOCKET_TMPFS "/var/run/irqbalance/" | ||
|
||
#endif /* __INCLUDE_GUARD_IRQBALANCE_H_ */ | ||
|
||
--- a/ui/irqbalance-ui.h | ||
+++ b/ui/irqbalance-ui.h | ||
@@ -8,7 +8,7 @@ | ||
#include <glib-unix.h> | ||
|
||
#define SOCKET_PATH "irqbalance" | ||
-#define SOCKET_TMPFS "/run/irqbalance" | ||
+#define SOCKET_TMPFS "/var/run/irqbalance" | ||
|
||
#define STATS "stats" | ||
#define SET_SLEEP "settings sleep " |
4f0c847
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hnyman Will you backport it to 19.07 branch?
4f0c847
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I backported it (and also the previous two commits, so that irqbalance in 19.07 is now equal to master)
4f0c847
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. Thanks.