<?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>89180</bug_id>
          
          <creation_ts>2005-04-15 07:05 0000</creation_ts>
          <short_desc>/etc/init.d/mpd start-stop-daemon in stop() function should specify --oknodo</short_desc>
          <delta_ts>2005-05-05 07:32:15 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>
          
          
          <keywords>InCVS</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kovacsp3@comcast.net</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>kovacsp3@comcast.net</who>
            <bug_when>2005-04-15 07:05:38 0000</bug_when>
            <thetext>The mpd daemon will have terminated by the time start-stop-daemon --stop gets to it, since mpd traps the TERM signal and shuts down well before its /etc/init.d/mpd stop command is run.   The start-stop-daemon --stop command in /etc/init.d/mpd will return 1 unless --oknodo is specified, as it should in this case.  The fix below will cause eend $? to report [ok] on mpd shutdown and not [!!].

In /etc/init.d/mpd:

stop() {
   ebegin &quot;Stopping Musinc Player Daemon&quot;
   start-stop-daemon --stop --quiet --exec /usr/bin/mpd 
   eend $?
}

should be:

stop() {
   ebegin &quot;Stopping Musinc Player Daemon&quot;
   start-stop-daemon --stop --quiet --exec /usr/bin/mpd --oknodo
   eend $?
}


Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luckyduck@gentoo.org</who>
            <bug_when>2005-05-05 07:32:15 0000</bug_when>
            <thetext>fixed in cvs, thanks</thetext>
          </long_desc>
      
    </bug>

</bugzilla>