You are not logged in.
When I try to play from mpd (after starting it from systemd with "systemctl start mpd"), nothing happens. In ncmpcpp, when I press play, it quickly shows play and then immediately goes to "paused". When I start MPD normally from the command line (just by running "mpd"), it works fine, but for some reason, some conflict is being caused by systemd.
Is there anywhere I should start to look? I don't really know how to troubleshoot it, as I don't know how to make it log without running it from the command line.
EDIT: I set up systemd --user and wrote a service for it. It seems that mpd was running as root and caused some permissions issues.
Last edited by miscsubbin (2013-06-11 01:03:34)
Offline
Have you already tried to check whether the mpd is running by "systemctl status mpd" or "netstat -lptn"?
Offline
Output ends up in the journal by default.
When starting "normally", do you also start mpd as root (since there is no "--user" in your systemctl call)?
Offline
Similar problem here. I just moved from mpd-git to mpd. When I start mpd from shell as root (with sudo) it works normally, but when I try to use systemctl to run the service it looks stuck and mpd doesn't start.
Ok, I solved reinstalling systemd. May be with the last "dangerous" update I broke something in it.
Last edited by Saro (2013-06-07 00:51:32)
Offline
Output ends up in the journal by default.
When starting "normally", do you also start mpd as root (since there is no "--user" in your systemctl call)?
I just checked and it is running as root, however, when I do
systemctl --user enable mpdI get:
Failed to issue method call: Process /bin/false exited with status 1Offline
Unless you have actually set up systemd --user, it is not going to work. But there is an alternative, as you can simply specify User=<you> in the mpd.service file (or any service for that matter) and it will run the command as <you> rather than root.
What I have done is created an mpd@.service and then have "User=%I" so that I can start/enable mpd@wonderwoofy.service.
Offline
I've decided to set up systemd --user mostly because I was bored. And that made mpd work. Thanks!
However I also tried switching from slim to lightdm, and starting my wm with systemd --user. So now I get a grey screen instead of a window manager. Perhaps I'll make another thread... haha!
Offline