You are not logged in.

#1 2008-10-01 21:59:43

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

[SOLVED]MPD fails if started from rc.conf, runs OK if started after...

Hello,

in my rc.conf I have:

DAEMONS=(syslog-ng @network @netfs @crond @oss @mysqld @hal @cups @vmware mpd @samba @sshd @noip mpdscribble )


But, when booting up my system, I get that mpd failed to launch. However, if I log-in and start up mpd manually (/etc/rc.d/mpd start) it works OK. There is no error message in the mpd log.

My mpd.conf is:

music_directory                 "/home/renan/Músicas"
playlist_directory              "/home/renan/.mpd/playlists"
db_file                         "/home/renan/.mpd/mpd.db"
log_file                        "/home/renan/.mpd/mpd.log"
error_file                      "/home/renan/.mpd/mpd.error"
state_file                      "~/.mpd/mpdstate"
user                            "renan"
bind_to_address                 "127.0.0.1"
audio_output {
        type                    "oss"
        name                    "My OSS Device"
}
max_playlist_length             "32768"

Any hints?

Thanks.

Last edited by Renan Birck (2008-10-03 00:14:26)

Offline

#2 2008-10-01 23:45:32

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: [SOLVED]MPD fails if started from rc.conf, runs OK if started after...

You're probably starting mpd before network and oss have finished starting. Don't background so many daemons, you can't predict their loading order.


1000

Offline

#3 2008-10-02 21:54:32

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED]MPD fails if started from rc.conf, runs OK if started after...

Un-backgrounding some daemons fixes the problem. This is my current DAEMONS line in rc.conf:

DAEMONS=(syslog-ng network @netfs @crond oss @mysqld @hal @cups @vmware mpd @samba @sshd @noip mpdscribble )

Offline

#4 2008-10-02 23:20:04

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

Re: [SOLVED]MPD fails if started from rc.conf, runs OK if started after...

Please mark the thread as solved.


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

Board footer

Powered by FluxBB