Re: MPD on localhost won't work if there's no Wifi!?
On Mon, Jun 09, 2014 at 03:16:00AM -0400, Teresa e Junior wrote:
> On Mon, 9 Jun 2014 10:30:09 +0400, Reco wrote:
> >So, mpc tries standard mpd socket and fails. Adding said socket to
> >mpd.conf (via bind_address) should solve the issue.
>
> Just adding a path to the socket doesn't really solve the issue (I
> run MPD as my user, so there is no access to /var/run). I tried
> removing /etc/mpd.conf, but strace tells me MPD still tries to find
> the sockets in /var/run, and seems to ignore a socket specified in
> bind_to_address in my .mpd/mpd.conf:
> bind_to_address "/home/teresaejunior/.mpd/socket"
>
> But I got it to work by running:
> MPD_HOST=~/.mpd/socket mpc
Good. Now there's only the network issue left.
> For this I deeply regret, because I generally leave MPD running, but
> I had to reboot (which I don't do often, I almost always just
> hibernate), and so MPD was not running. The problem I mentioned does
> exist, but the strace I have sent is wrong. Here are the proper
> strace logs without setting the socket in mpd.conf: the first tries
> the /var/run/ sockets, but the second doesn't, and the third works
> because the Wifi has been connected:
Ok. Thinking about it, I beleive I may miss something. What does show:
strace -f mpc
Reco
Reply to: