<?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>51748</bug_id>
          
          <creation_ts>2004-05-22 11:31 0000</creation_ts>
          <short_desc>rc script for media-sound/mpd fails to stop daemon</short_desc>
          <delta_ts>2004-05-24 15:08:16 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lilwyrm@gmail.com</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          <cc>duane@psyber.com</cc>

      

      
          <long_desc isprivate="0">
            <who>lilwyrm@gmail.com</who>
            <bug_when>2004-05-22 11:31:06 0000</bug_when>
            <thetext>When mpd starts, it immediately forks, so the pid file created by start-stop-daemon is invalid. When attempting to stop mpd via the rc script, start-stop-daemon can&apos;t find mpd, and returns an error.

Steps to reproduce:
# /etc/init.d/mpd stop

Result:
 * Stopping Music Player Daemon...
start-stop-daemon: warning: failed to kill 21353: No such process [ !! ]

Fix speculation:
The rc script should either issue a &quot;kill&quot; command directly to mpd (Bash networking) or use `start-stop-daemon --stop --exec /usr/bin/mpd</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lilwyrm@gmail.com</who>
            <bug_when>2004-05-22 11:35:24 0000</bug_when>
            <thetext>Created an attachment (id=31847)
rc script excerpt: using start-stop-daemon
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferringb@gmail.com</who>
            <bug_when>2004-05-24 15:06:58 0000</bug_when>
            <thetext>*** Bug 50583 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferringb@gmail.com</who>
            <bug_when>2004-05-24 15:08:16 0000</bug_when>
            <thetext>Thanks Drake-
commited to cvs, rev-bumped 0.9.4 and 0.10.3 to -r1.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>31847</attachid>
            <date>2004-05-22 11:35 0000</date>
            <desc>rc script excerpt: using start-stop-daemon</desc>
            <filename>rcscript_excerpt</filename>
            <type>text/plain</type>
            <data encoding="base64">c3RhcnQoKSB7CgljaGVja2NvbmZpZyB8fCByZXR1cm4gMQoKCWViZWdpbiAiU3RhcnRpbmcgTXVz
aWMgUGxheWVyIERhZW1vbiIgCglzdGFydC1zdG9wLWRhZW1vbiAtLXN0YXJ0IC0tcXVpZXQgLS1l
eGVjIC91c3IvYmluL21wZCAtLSAtLW5vLWNyZWF0ZS1kYgoJZWVuZCAkPwp9CgpzdG9wKCkgewoJ
ZWJlZ2luICJTdG9wcGluZyBNdXNpYyBQbGF5ZXIgRGFlbW9uIgoJc3RhcnQtc3RvcC1kYWVtb24g
LS1zdG9wIC0tcXVpZXQgLS1leGVjIC91c3IvYmluL21wZAoJZWVuZCAkPyAKfQo=
</data>        

          </attachment>
    </bug>

</bugzilla>