Package: irqbalance / 1.5.0-3

debian-systemd-service-adaptions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Andreas Henriksson <andreas@fatal.se>
Subject: Debian adaptions of the upstream systemd unit file

Forwarded: not-needed

Change the path to the environment file to match Debian defacto standard
and make it optional by prepending a -.

Explicitly set Restart=no (the default) and add a comment about why.
It would be better if oneshot was handled via Type=oneshot when
that mode is desired, so that other modes could restart the daemon
on failure/abort/whatever.

--- a/misc/irqbalance.service
+++ b/misc/irqbalance.service
@@ -5,7 +5,7 @@ Documentation=https://github.com/Irqbala
 ConditionVirtualization=!container
 
 [Service]
-EnvironmentFile=/path/to/irqbalance.env
+EnvironmentFile=-/etc/default/irqbalance
 ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
 CapabilityBoundingSet=
 NoNewPrivileges=yes
@@ -14,5 +14,9 @@ ReadWritePaths=/proc/irq
 RestrictAddressFamilies=AF_UNIX
 TemporaryFileSystem=/run:ro
 
+# If IRQBALANCE_ONESHOT environment is set, the service will exit so:
+Restart=no
+# (The above case would be better as a real Type=oneshot unit.)
+
 [Install]
 WantedBy=multi-user.target