<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>103458</bug_id>
          
          <creation_ts>2005-08-23 07:28 0000</creation_ts>
          <short_desc>media-sound/mpd - init script should need netmount</short_desc>
          <delta_ts>2005-10-16 14:21:25 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>wildfire@ufanet.ru</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          <cc>ladanyi@tmit.bme.hu</cc>

      

      
          <long_desc isprivate="0">
            <who>wildfire@ufanet.ru</who>
            <bug_when>2005-08-23 07:28:58 0000</bug_when>
            <thetext>I have music collection on NFS share and I&apos;m using MPD 0.11.5 from portage
(media-sound/mpd). &apos;Mpd&apos; service needs only &apos;localmount&apos; service. I think, it
must depends on &apos;netmount&apos; service too.

I change &apos;/etc/init.d/mpd&apos; 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 &apos;emerge mpd&apos;
2. change /etc/mpd.conf &apos;music_directory&apos; parameter to any NFS-mounted directory
(/mnt/server/music on my machine)
3. create mpd&apos;s db using &apos;mpd --create-db&apos; command.
3. do &apos;rc-update add mpd default&apos;
4. reboot
Actual Results:  
mpd service don&apos;t start with message &apos;Can&apos;t stat /mnt/server/music/ directory&apos;.

Expected Results:  
mpd service must start after &apos;netmount&apos; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.seren.com/gentoo&quot;
LANG=&quot;ru_RU.KOI8-R&quot;
LINGUAS=&quot;en ru&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-10-16 13:56:14 0000</bug_when>
            <thetext>I disagree - I myself don&apos;t use the netmount service. Correct invocation is &quot;use
netmount&quot;, i.e. start netmount service before mpd *if* it&apos;s in the same runlevel
(runlevel &quot;default&quot;, usually). I&apos;ll change the initscript accordingly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-10-16 14:21:25 0000</bug_when>
            <thetext>Fixed in CVS. Thanks for reporting this.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>