Fix EnvironmentFile location in systemd unit

Fixes: fedora#2058510
This commit is contained in:
Timothée Ravier 2022-08-01 17:02:07 +02:00
parent f7440632d8
commit c6aab0ad03
2 changed files with 28 additions and 0 deletions

View 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

View File

@ -8,6 +8,7 @@ License: GPLv2
URL: https://github.com/Irqbalance/irqbalance
Source0: %{url}/archive/v%{version}/irqbalance-%{version}.tar.gz
Source1: irqbalance.sysconfig
Patch1: irqbalance-1.9.0-environment-file-sysconfig.patch
BuildRequires: autoconf automake libtool libcap-ng
@ -65,6 +66,7 @@ make check
%changelog
* 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)
- Fix EnvironmentFile location in systemd unit (fedora#2058510)
* Sun Jul 24 2022 Leigh Scott <leigh123linux@gmail.com> - 2:1.8.0-4
- Fix compile issue