Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103458 - media-sound/mpd - init script should need netmount
Summary: media-sound/mpd - init script should need netmount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 07:28 UTC by Nikolay Pashenkov
Modified: 2005-10-16 14:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Pashenkov 2005-08-23 07:28:58 UTC
I have music collection on NFS share and I'm using MPD 0.11.5 from portage
(media-sound/mpd). 'Mpd' service needs only 'localmount' service. I think, it
must depends on 'netmount' service too.

I change '/etc/init.d/mpd' depend() function this way:

....
depend() {
need localmount netmount
use alsasound
}
....

and it works fine for me.

Sorry for my English :)

Reproducible: Always
Steps to Reproduce:
1. install mpd using 'emerge mpd'
2. change /etc/mpd.conf 'music_directory' parameter to any NFS-mounted directory
(/mnt/server/music on my machine)
3. create mpd's db using 'mpd --create-db' command.
3. do 'rc-update add mpd default'
4. reboot
Actual Results:  
mpd service don't start with message 'Can't stat /mnt/server/music/ directory'.

Expected Results:  
mpd service must start after 'netmount' service.

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) XP 1500+
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.seren.com/gentoo"
LANG="ru_RU.KOI8-R"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts bzip2 crypt cups eds emboss
encode foomaticdb fortran gdbm gif gstreamer gtk2 imlib jpeg libg++ libwww mad
mikmod mmx motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pam pdflib perl
png python quicktime readline sdl spell sse ssl tcpd truetype truetype-fonts
type1-fonts userlocales vorbis xml2 xv zlib linguas_en linguas_ru userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-10-16 13:56:14 UTC
I disagree - I myself don't use the netmount service. Correct invocation is "use
netmount", i.e. start netmount service before mpd *if* it's in the same runlevel
(runlevel "default", usually). I'll change the initscript accordingly.
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2005-10-16 14:21:25 UTC
Fixed in CVS. Thanks for reporting this.