-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
irqbalance: systemd service config aligned with upstream #78448
Conversation
Aligned systemd service config with the definition in the upstream repo: https://github.com/Irqbalance/irqbalance/blob/master/misc/irqbalance.service#L7. Other than adding some level of sandboxing it also fixes the "Daemon couldn't be bound to the file-based socket." warning reported on irqbalance startup due to the fact that the "/run/irqbalance" directory didn't exist. The "RuntimeDirectory" property makes sure it gets created. The aforementioned warning didn't cause any problems I could spot though. I have verified that both `irqbalance` as well as `irqbalance-ui` work fine with this new systemd service config.
@snicket2100 would you mind, modifying the package to install the package to |
@Mic92 Sure, sounds great, thanks for the hint, I'm very new to NixOS so I didn't know that approach. Will fix it as soon as I learn how to do it ;) |
Just have a look for other users of |
@Mic92 thanks for the hint once again, does it look good to you now? |
otherwise the service is never started by us.
environment.systemPackages = [ pkgs.irqbalance ]; | ||
|
||
systemd.services.irqbalance.wantedBy = ["multi-user.target"]; |
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.
This was still needed.
irqbalance: systemd service config aligned with upstream (cherry picked from commit 6cfc7e9)
Aligned systemd service config with the definition in the upstream repo: https://github.com/Irqbalance/irqbalance/blob/master/misc/irqbalance.service#L7.
Other than adding some level of sandboxing it also fixes the "Daemon couldn't be bound to the file-based socket." warning reported on irqbalance startup due to the fact that the "/run/irqbalance" directory didn't exist. The "RuntimeDirectory" property makes sure it gets created. The aforementioned warning didn't cause any problems I could spot though.
I have verified that both
irqbalance
as well asirqbalance-ui
work fine with this new systemd service config.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)