You are not logged in.

#1 2009-04-09 20:19:47

lollerskates
Member
Registered: 2007-10-27
Posts: 10

[SOLVED] mpd won't start on boot

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

#2 2009-04-09 20:30:04

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] mpd won't start on boot

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.

Offline

#3 2009-04-09 21:03:21

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] mpd won't start on boot

brisbin33 wrote:

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)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2009-04-09 21:07:09

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] mpd won't start on boot

i was gonna mention that, but im not 100% familiar with wireless and thought maybe networkmanager negated the need for network... i played it safe.

Offline

#5 2009-04-09 23:39:24

lollerskates
Member
Registered: 2007-10-27
Posts: 10

Re: [SOLVED] mpd won't start on boot

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

#6 2009-04-10 08:48:10

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [SOLVED] mpd won't start on boot

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

#7 2009-04-10 09:47:56

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: [SOLVED] mpd won't start on boot

moljac024 wrote:

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

#8 2009-04-10 13:53:37

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] mpd won't start on boot

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.

Offline

Board footer

Powered by FluxBB