[Pkg-mpd-maintainers] Bug#746499: mpd doesn't start with user different from 'mpd' when using systemd

Matt Zagrabelny mzagrabe at d.umn.edu
Wed Apr 30 16:20:51 UTC 2014


Package: mpd
Version: 0.18.10-2
Severity: normal

Dear Maintainer,

I am trying out systemd. It looks like systemd is using the unit file
for mpd (/lib/systemd/system/mpd.service), but systemd (??) is not
creating the /run/mpd with correct ownership according to /etc/mpd.conf.

sudo grep '^user' /etc/mpd.conf
user                "mzagrabe"

Performing:

sudo chown mzagrabe /run/mpd
sudo systemctl start mpd

fixed the issue.

I've grepped for how to set the user (owner) for the RuntimeDirectory of a
service, but have come up empty.

Thanks for your contribution to Debian!

-mz

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mpd depends on:
ii  adduser                   3.113+nmu3
ii  init-system-helpers       1.18
ii  libadplug-2.2.1-0         2.2.1+dfsg3-0.1
ii  libao4                    1.1.0-2
ii  libasound2                1.0.27.2-3
ii  libaudiofile1             0.3.6-2
ii  libavahi-client3          0.6.31-4
ii  libavahi-common3          0.6.31-4
ii  libavcodec54              6:9.11-3+b3
ii  libavformat54             6:9.11-3+b3
ii  libavutil52               7:1.1-dmo3
ii  libbz2-1.0                1.0.6-5
ii  libc6                     2.18-5
ii  libcdio-cdda1             0.83-4.1
ii  libcdio-paranoia1         0.83-4.1
ii  libcdio13                 0.83-4.1
ii  libcurl3-gnutls           7.36.0-2
ii  libfaad2                  2.7-8
ii  libflac8                  1.3.0-2
ii  libfluidsynth1            1.1.6-2
ii  libglib2.0-0              2.40.0-3
ii  libgme0                   0.5.5-2
ii  libid3tag0                0.15.1b-10
ii  libiso9660-8              0.83-4.1
ii  libjack0 [libjack-0.116]  1:0.124.1+20140122git5013bed0-2+b1
ii  libmad0                   0.15.1b-8
ii  libmikmod3                3.3.6-2
ii  libmms0                   0.6.2-4
ii  libmodplug1               1:0.8.8.4-4.1
ii  libmp3lame0               1:3.99.5-dmo2
ii  libmpcdec6                2:0.1~r459-4.1
ii  libmpdclient2             2.9-1
ii  libmpg123-0               1.18.0-1
ii  libogg0                   1.3.1-1
ii  libopenal1                1:1.14-4
ii  libopus0                  1.1-1
ii  libpulse0                 5.0-2
ii  libresid-builder0c2a      2.1.1-14
ii  libroar2                  1.0~beta11-1
ii  libsamplerate0            0.1.8-7
ii  libshout3                 2.3.1-3
ii  libsidplay2               2.1.1-14
ii  libsidutils0              2.1.1-14
ii  libsndfile1               1.0.25-9
ii  libsqlite3-0              3.8.4.3-2
ii  libstdc++6                4.9.0-1
ii  libsystemd-daemon0        208-1
ii  libvorbis0a               1.3.2-1.3
ii  libvorbisenc2             1.3.2-1.3
ii  libvorbisfile3            1.3.2-1.3
ii  libwavpack1               4.70.0-1
ii  libwildmidi1              0.3.5-1
ii  libwrap0                  7.6.q-25
ii  libyajl2                  2.0.4-4
ii  libzzip-0-13              0.13.62-2
ii  lsb-base                  4.1+Debian12

mpd recommends no packages.

Versions of packages mpd suggests:
ii  ario [mpd-client]     1.5.1-1.1
ii  avahi-daemon          0.6.31-4
ii  gmpc [mpd-client]     11.8.16-8
pn  icecast2              <none>
ii  mpc [mpd-client]      0.25-1
ii  ncmpc [mpd-client]    0.21-1
ii  ncmpcpp [mpd-client]  0.5.10-1.1
ii  pulseaudio            5.0-2

-- Configuration Files:
/etc/mpd.conf changed:
music_directory		"/var/local/media/audio"
playlist_directory		"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/tag_cache"
log_file			"/var/log/mpd/mpd.log"
pid_file			"/run/mpd/pid"
state_file			"/var/lib/mpd/state"
user				"mzagrabe"
bind_to_address		"localhost"
input {
        plugin "curl"
}
audio_output {
	type		"pulse"
	name		"My Pulse Output"
	server		"/run/user/1000/pulse/native"	# optional
}
replaygain			"auto"
replaygain_preamp		"0"
replaygain_limit		"no"
volume_normalization		"no"
filesystem_charset		"UTF-8"
id3v1_encoding			"UTF-8"


-- no debconf information



More information about the Pkg-mpd-maintainers mailing list