File: systemd_honor_MPDCONF.patch

package info (click to toggle)
mpd 0.24.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,740 kB
  • sloc: cpp: 74,967; python: 1,371; xml: 628; perl: 469; java: 289; sh: 286; ansic: 235; makefile: 105
file content (16 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: source $MPDCONF from /etc/default/mpd
Author: Florian Schlichting <fsfs@debian.org>
Forwarded: not-needed

--- a/systemd/system/mpd.service.in
+++ b/systemd/system/mpd.service.in
@@ -5,7 +5,8 @@
 
 [Service]
 Type=notify
-ExecStart=@prefix@/bin/mpd --systemd
+EnvironmentFile=/etc/default/mpd
+ExecStart=@prefix@/bin/mpd --systemd $MPDCONF
 
 # Enable this setting to ask systemd to watch over MPD, see
 # systemd.service(5).  This is disabled by default because it causes