summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2020-10-07 09:12:09 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2020-10-07 09:12:09 +0200
commit837c9b38b347994df7cab4ef482596abce4d5428 (patch)
tree4a0fd13a7bf6c090a1b306790b6912a7ac814163
parent9266408ab22b88aa00aabd565733afe3799f81b9 (diff)
- d/p/systemd-to-consider-RPCNFSDPRIORITY.patch: pass the RPCNFSDPRIORITY
that controls the nice level to the systemd unit Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/systemd-to-consider-RPCNFSDPRIORITY.patch22
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
index 9fac5643..97d1c6ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -27,3 +27,4 @@ fix-start-ordering-2.patch
fix-start-ordering-3.patch
CVE-2019-3689.patch
Allow-compilation-to-succeed-with-fno-common.patch
+systemd-to-consider-RPCNFSDPRIORITY.patch
diff --git a/debian/patches/systemd-to-consider-RPCNFSDPRIORITY.patch b/debian/patches/systemd-to-consider-RPCNFSDPRIORITY.patch
new file mode 100644
index 00000000..60e8b594
--- /dev/null
+++ b/debian/patches/systemd-to-consider-RPCNFSDPRIORITY.patch
@@ -0,0 +1,22 @@
+Description: make systemd service consider RPCNFSDPRIORITY
+ The default config file has the option RPCNFSDPRIORITY
+ which in sysV was passed as nice level.
+ But the systemd service ignores this option, which
+ is fixed by this patch that expresses the nice limit
+ in systemd syntax using the RPCNFSDPRIORITY setting.
+Forwarded: no
+X-Not-Forwarded-Reason: Downstream only config option
+Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1898778
+Last-Update: 2020-10-07
+--- a/systemd/nfs-server.service
++++ b/systemd/nfs-server.service
+@@ -23,6 +23,8 @@ EnvironmentFile=-/run/sysconfig/nfs-util
+
+ Type=oneshot
+ RemainAfterExit=yes
++LimitNICE=$RPCNFSDPRIORITY
++
+ ExecStartPre=/usr/sbin/exportfs -r
+ ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS
+ ExecStop=/usr/sbin/rpc.nfsd 0