Your message dated Thu, 17 Jul 2014 18:14:00 +0200
with message-id <[email protected]>
and subject line Re: [Pkg-mpd-maintainers] Bug#746499: mpd doesn't start with
user different from 'mpd' when using systemd
has caused the Debian Bug report #746499,
regarding mpd doesn't start with user different from 'mpd' when using systemd
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
746499: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746499
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hi,
I'm sorry I somehow missed your bug report back in April and only
stumble over it now...
> 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"
Unfortunately, changing the user in mpd.conf and expecting things to
work is not something that the Debian package supports. It's not just
/run/mpd, there's the library, database files, log, ... which all needs
changing, and none of that is easy to do with systemd (or easy to do
correctly with traditional init scripts).
If you want to run mpd as your user instead of as a system service,
the preferred way is to start it from your desktop session as described in
README.Debian:
To prevent mpd from running as a system service, disable its startup
using the command (as root) "update-rc.d mpd disable". mpd is then
started through the XDG autostart mechanism upon logging into your
desktop environment, provided it can find a valid config file (such
as ~/.mpdconf).
Perhaps this paraqgraph should be expanded somewhat and explain that
"valid config" includes proper permissions on the referenced directories
etc?
Florian
--- End Message ---