[Pkg-mpd-commits] [pkg-mpd] 05/10: Add unknown-lvalue-ControlGroup.patch to avoid two warning messages (closes: #781377)

Florian Schlichting fsfs at moszumanska.debian.org
Mon Jun 22 22:15:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to branch master
in repository pkg-mpd.

commit 0c5898618f8eb9d7fe5d1dba73412496f04d4cea
Author: Florian Schlichting <fsfs at debian.org>
Date:   Mon Jun 22 22:37:52 2015 +0200

    Add unknown-lvalue-ControlGroup.patch to avoid two warning messages (closes: #781377)
---
 debian/patches/series                            |  1 +
 debian/patches/unknown-lvalue-ControlGroup.patch | 28 ++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index beb51ba..f809b8b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ systemd_honor_MPDCONF.patch
 typo.patch
 also-dis_en_able-socket.patch
 protect_system.patch
+unknown-lvalue-ControlGroup.patch
diff --git a/debian/patches/unknown-lvalue-ControlGroup.patch b/debian/patches/unknown-lvalue-ControlGroup.patch
new file mode 100644
index 0000000..cd5f215
--- /dev/null
+++ b/debian/patches/unknown-lvalue-ControlGroup.patch
@@ -0,0 +1,28 @@
+Description: Fix "Unknown lvalue 'ControlGroup' in section 'Service'" warnings
+ systemd 205 removed the ControlGroup and ControlGroupAttribute
+ directives (see
+ http://lists.freedesktop.org/archives/systemd-devel/2013-July/011679.html),
+ so they have been ineffective since and only caused the above warnings
+ to be written to the journal. However the above changelog suggests "Please
+ use high-level attribute settings instead as well as slice units."
+Author: Florian Schlichting <fsfs at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781377
+
+--- a/systemd/mpd.service.in
++++ b/systemd/mpd.service.in
+@@ -10,15 +10,6 @@
+ LimitRTPRIO=50
+ LimitRTTIME=-1
+ 
+-# move MPD to a top-level cgroup, as real-time budget assignment fails
+-# in cgroup /system/mpd.service, because /system has a zero real-time
+-# budget; see
+-# http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
+-ControlGroup=cpu:/mpd
+-
+-# assign a real-time budget
+-ControlGroupAttribute=cpu.rt_runtime_us 500000
+-
+ # disallow writing to /usr, /bin, /sbin, ...
+ ProtectSystem=yes
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/pkg-mpd.git



More information about the Pkg-mpd-commits mailing list