I'm running mpd on a computer which mounts the music partition from a different computer over nfs. I added mpd to my default runlevel so it would automatically start on boot. Since the music directory is the nfs directory and mpd is started before nfsmount mpd fails with the error message "problem stat'ing "/mnt/nfs/audio". To work around this we should add the lines use nfsmount use netmount to the depend function. Reproducible: Always Steps to Reproduce: 1. emerge mpd an point music_directory to a nfs mount point 2. rc-update add mpd default 3. reboot Actual Results: mpd fails to start because it cannot access the music directory Expected Results: mpd should startup normally - after nfsmount has been started themisto init.d # emerge info Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.14-rc1 i686) ================================================================= System uname: 2.6.14-rc1 i686 AMD Athlon(tm) Gentoo Base System version 1.12.0_pre8 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -maccumulate-outgoing-args" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -maccumulate-outgoing-args" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-de" SYNC="rsync://ftp.rz.tu-bs.de/gentoo-portage" USE="x86 3dnow X aalib acl acpi adns alsa avi bash-completion berkdb bitmap-fonts bonobo cdr crypt cscope cups curl dga divx4linux dvb dvd dvdr dvdread eds emboss encode esd ethereal fam fbcon flac foomaticdb fortran gdbm ggi gif gphoto2 gstreamer gtk gtk2 gtkhtml guile hbci icq imagemagick imap imlib ipv6 java jpeg ldap libcaca libg++ libwww lirc mad mikmod mmx motif mp3 mpeg mysql nas ncurses nls nptl nvidia offensive ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba scanner sdl slang snmp speex spell sqlite sse ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32codecs xine xinerama xml xml2 xmms xosd xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Bug 103458 already included netmount. I didn't initially see that because I searched for nfs and mpd. I also use netmount and so this would fix my problem but maybe other users start nfsmount instead od netmount so I think use nfsmount should still be included.
Good idea, thanks Daniel. Fixed in CVS for both mpd and mpd-svn packages. No revision bump was made, so users will have to remerge mpd (or mpd-svn) in order to get the updated initscript.