tags 681774 + patch
thanks

Hi,

Ulrich Dangel wrote (16 Jul 2012 12:35:24 GMT) :
> Ok this seems to be an issue with systemd as the service file does
> not specify the custom config file like the init script.

Yes. I was hit by this issue after switching to systemd.
Attached patch fixes this bug for me.

Cheers,
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc

diff -Nru mpd-0.17.1/debian/patches/series mpd-0.17.1/debian/patches/series
--- mpd-0.17.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ mpd-0.17.1/debian/patches/series	2012-11-27 00:26:10.000000000 +0100
@@ -0,0 +1 @@
+systemd-specify-config-file.diff
diff -Nru mpd-0.17.1/debian/patches/systemd-specify-config-file.diff mpd-0.17.1/debian/patches/systemd-specify-config-file.diff
--- mpd-0.17.1/debian/patches/systemd-specify-config-file.diff	1970-01-01 01:00:00.000000000 +0100
+++ mpd-0.17.1/debian/patches/systemd-specify-config-file.diff	2012-11-27 00:27:30.000000000 +0100
@@ -0,0 +1,11 @@
+--- a/mpd.service.in
++++ b/mpd.service.in
+@@ -3,7 +3,7 @@
+ After=sound.target
+ 
+ [Service]
+-ExecStart=@prefix@/bin/mpd --no-daemon
++ExecStart=@prefix@/bin/mpd --no-daemon /etc/mpd.conf
+ 
+ [Install]
+ WantedBy=multi-user.target

Reply via email to