You are not logged in.
Pages: 1
I'm having a weird issue with mpd. It doesn't start up when the other daemons start up, but it starts up fine when using
sudo /etc/rc.d/mpd start
I can access my library normally via ncmpc afterwards.
Here are some relevant snippets:
#rc.conf
DAEMONS=(syslog-ng !network hal networkmanager portmap fam netfs crond alsa mpd gdm)
#mpd.conf
music_directory "~/Music"
playlist_directory "~/Playlists"
db_file "~/.mpd/db"
log_file "~/.mpd/log"
error_file "~/.mpd/error"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
user "gms"
bind_to_address "127.0.0.1"
port "6600"
mixer_type "alsa"
mixer_device "default"
mixer_control "Master"
Last edited by lollerskates (2009-04-09 23:38:46)
Offline
five bucks says it's b/c you're networks not up fully by the time DAEMONS get's to mpd. but it is by the time you get to manually starting it.
you've got a few options. find out why and fix it. or add this to rc.local
(sleep 10 && /etc/rc.d/mpd start) &
adjust sleep as necessary.
//github/
Offline
five bucks says it's b/c you're networks not up fully by the time DAEMONS get's to mpd. but it is by the time you get to manually starting it.
you've got a few options. find out why and fix it. or add this to rc.local
(sleep 10 && /etc/rc.d/mpd start) &
adjust sleep as necessary.
You earned the 5 bucks !!
another way to solve it would be to NOT background/NOT disable 'network' in your rc.conf. and of course start it before mpd.
Last edited by Inxsible (2009-04-09 21:03:49)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Yeah, using network works, but I still have need to disable it to use networkmanager (and wicd). I'll mark this solved for now.
Offline
Just run mpd as the user instead of using the daemon....much less hassle
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Just run mpd as the user instead of using the daemon....much less hassle
That's what I thought too. You're doing everything user-specific with ~/ and running mpd under a normal user. Then afterwards you're going to use sudo to start it. Kinda odd.
Offline
i don't know about you guys but i like to use mpD as a music playing Daemon. this means i want it always on in the background playing music. from the second my machine boots until i shut it down. in the config, it still runs as me, using my ~/.mpd folder and all. but if i started in as a user via .xinitrc or something i wouldn't have music playing the whole time im reconfiguring X, logging in/out, and what have you.
everyone's got their own uses though, just sharing mine.
//github/
Offline
Pages: 1