Skip to content
Permalink
Browse files

Add optional config file in /usr/lib

immutable distributions have a need for distribution specific configs in
a read only space, and so modify the service file to optionally read a
config file from /usr/lib/irqbalance/default.env

Addresses #118

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
  • Loading branch information...
nhorman committed Sep 17, 2019
1 parent b3ae88a commit 724243f1744a263b3777e920526c0a4a3c042ca6
Showing with 2 additions and 1 deletion.
  1. +2 −1 misc/irqbalance.service
@@ -5,7 +5,8 @@ Documentation=https://github.com/Irqbalance/irqbalance
ConditionVirtualization=!container

[Service]
EnvironmentFile=/path/to/irqbalance.env
Environmentfile=-/usr/lib/irqbalance/defaults.env

This comment has been minimized.

Copy link
@lucab

lucab Sep 17, 2019

Sorry, this was just my silly-named example.
It looks like the actual file in this repo is called irqbalance.env, do you maybe want to match the two names (in either direction)?

EnvironmentFile=-/path/to/irqbalance.env
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
CapabilityBoundingSet=
NoNewPrivileges=yes

1 comment on commit 724243f

@nhorman

This comment has been minimized.

Copy link
Contributor Author

commented on 724243f Sep 17, 2019

I don't think thats needed, the read-only path is already in a directory named irqbalance, so I don't see a reason to duplicate that

Please sign in to comment.
You can’t perform that action at this time.