Fix EnvironmentFile location in systemd unit
Fixes: fedora#2058510
This commit is contained in:
parent
f7440632d8
commit
c6aab0ad03
26
irqbalance-1.9.0-environment-file-sysconfig.patch
Normal file
26
irqbalance-1.9.0-environment-file-sysconfig.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 9d3070150d151bfd5535c3da43313511659d882e Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= <tim@siosm.fr>
|
||||||
|
Date: Mon, 1 Aug 2022 15:52:24 +0200
|
||||||
|
Subject: [PATCH] misc/irqbalance.service: Use sysconfig for EnvironmentFile
|
||||||
|
|
||||||
|
---
|
||||||
|
misc/irqbalance.service | 3 +--
|
||||||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/misc/irqbalance.service b/misc/irqbalance.service
|
||||||
|
index 0f79c3e..9bc63b6 100644
|
||||||
|
--- a/misc/irqbalance.service
|
||||||
|
+++ b/misc/irqbalance.service
|
||||||
|
@@ -6,8 +6,7 @@ ConditionVirtualization=!container
|
||||||
|
ConditionCPUs=>1
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
-EnvironmentFile=-/usr/lib/irqbalance/defaults.env
|
||||||
|
-EnvironmentFile=-/path/to/irqbalance.env
|
||||||
|
+EnvironmentFile=-/etc/sysconfig/irqbalance
|
||||||
|
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
|
||||||
|
ReadOnlyPaths=/
|
||||||
|
ReadWritePaths=/proc/irq
|
||||||
|
--
|
||||||
|
2.37.1
|
||||||
|
|
@ -8,6 +8,7 @@ License: GPLv2
|
|||||||
URL: https://github.com/Irqbalance/irqbalance
|
URL: https://github.com/Irqbalance/irqbalance
|
||||||
Source0: %{url}/archive/v%{version}/irqbalance-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/irqbalance-%{version}.tar.gz
|
||||||
Source1: irqbalance.sysconfig
|
Source1: irqbalance.sysconfig
|
||||||
|
Patch1: irqbalance-1.9.0-environment-file-sysconfig.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: autoconf automake libtool libcap-ng
|
BuildRequires: autoconf automake libtool libcap-ng
|
||||||
@ -65,6 +66,7 @@ make check
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 01 2022 Timothée Ravier <tim@siosm.fr> - 2:1.9.0-1
|
* Mon Aug 01 2022 Timothée Ravier <tim@siosm.fr> - 2:1.9.0-1
|
||||||
- Update to 1.9.0 (fedora#1952715 fedora#2091169 fedora#2063926)
|
- Update to 1.9.0 (fedora#1952715 fedora#2091169 fedora#2063926)
|
||||||
|
- Fix EnvironmentFile location in systemd unit (fedora#2058510)
|
||||||
|
|
||||||
* Sun Jul 24 2022 Leigh Scott <leigh123linux@gmail.com> - 2:1.8.0-4
|
* Sun Jul 24 2022 Leigh Scott <leigh123linux@gmail.com> - 2:1.8.0-4
|
||||||
- Fix compile issue
|
- Fix compile issue
|
||||||
|
Loading…
Reference in New Issue
Block a user