<?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>26513</bug_id>
          
          <creation_ts>2003-08-12 18:28 0000</creation_ts>
          <short_desc>Give the mpd ebuild a script in init.d and default configuration</short_desc>
          <delta_ts>2003-11-19 09:06:57 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>Linux</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>volkris@gmail.com</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          <cc>sbh@gawab.com</cc>
    
    <cc>shank@mercury.chem.pitt.edu</cc>
    
    <cc>thread@threadbox.net</cc>

      

      
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2003-08-12 18:28:54 0000</bug_when>
            <thetext>I&apos;m still in the process of installing mpd, so excuse me if I misunderstand
something about the progam itself, but...

The ebuild should probably include an init file in /etc/init.d and
configuration, perhaps as an entry in /etc/conf.d. mpd is a daemon, after all...

I&apos;d consider this necessary for moving the ebuild out from under ~x86

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbh@gawab.com</who>
            <bug_when>2003-08-12 22:05:51 0000</bug_when>
            <thetext>Configuration is not necessary, although there could be a default if it is thought to be needed, this file will default in the next version to /etc/mpd.conf or ~/.mpdconf (or something very similar) in 0.9.0.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2003-08-13 00:46:55 0000</bug_when>
            <thetext>Configuration IS needed, as the program won&apos;t run without it :)

I mean, if I type &quot;/usr/bin/mpd &lt;enter&gt;&quot; I get the following:

usage: /usr/bin/mpd &lt;port&gt; &lt;mp3/ogg dir&gt; &lt;playlist dir&gt; &lt;log file&gt; &lt;error file&gt;
or: /usr/bin/mpd &lt;conf file&gt;

Whether the configuration is passed on the command line or exists in a config file, configuration is needed, and either way the ebuild script should leave you a step closer to running the thing.

Even in 0.9.0, as you describe, the script should copy the default config file to /etc/mpd.conf. In the end I might prefer a command line, conf.d based approach instead, though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbh@gawab.com</who>
            <bug_when>2003-08-14 00:42:12 0000</bug_when>
            <thetext>Well, in that case if someone finds that this is a needed fix, the example conf file is currently at /usr/share/doc/mpd-0.8.4/mpdconf.example.gz with the 0.8.4 install. The best placing for it would be /etc/mpd.conf or ~/.mpdconf because in 0.9.0 this will most likely be it&apos;s default and mpd will then be able to be started without arguments, but until then whereever it is stored is still going to be needed as an argument to mpd&apos;s binary (fyi if the init.d script is concidered needed).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2003-08-14 00:57:22 0000</bug_when>
            <thetext>To be consistent with the rest of the Gentoo distribution the example config needs to be copied by the ebuild script and a very basic init.d script needs to be installed.

Sbh, are you a developer of mpd? What other types of stuff might eventually be included in the config file?

I&apos;m still thinking a conf.d entry would be preferable to a config file in this case. The values specified in the conf.d file would be passed to the mpd command line through the init.d script.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbh@gawab.com</who>
            <bug_when>2003-08-14 14:34:34 0000</bug_when>
            <thetext>I am not a dev of mpd, just an advocate, which is not really important with this bug, there will _always_ (more or less ;p) be additions, and I don&apos;t really disagree with a conf.d entry, but it won&apos;t be a default for the mpd binary, unless it&apos;s put in /etc/ or ~/ as I has said before, so all this means is people will be more bound to the init.d entry.

Cheers!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo-bugzilla@nikl.net</who>
            <bug_when>2003-09-08 12:15:26 0000</bug_when>
            <thetext>Created an attachment (id=17268)
/etc/conf.d/mpd and /etc/init.d/mpd for running mpd as an init-script

hi,

i&apos;ve been using mpd-0.8.5 for quite some time now and it works like a charm. I
created a user &quot;mpd&quot; (group: audio; home: /home/mpd). I&apos;ve been using the
attached files to run it as an init-script, only waiting for mpd to support
setuid ;)

hope, it&apos;s useful for others as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo-bugzilla@nikl.net</who>
            <bug_when>2003-09-08 12:15:58 0000</bug_when>
            <thetext>Created an attachment (id=17269)
/etc/conf.d/mpd and /etc/init.d/mpd for running mpd as an init-script

hi,

i&apos;ve been using mpd-0.8.5 for quite some time now and it works like a charm. I
created a user &quot;mpd&quot; (group: audio; home: /home/mpd). I&apos;ve been using the
attached files to run it as an init-script, only waiting for mpd to support
setuid ;)

hope, it&apos;s useful for others as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbh@gawab.com</who>
            <bug_when>2003-09-09 22:40:54 0000</bug_when>
            <thetext>Somewhat offtopic but MPD supports setuid in CVS and will be a feature for 0.9.x</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-11-19 09:06:57 0000</bug_when>
            <thetext>added in cvs with 0.9.3</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17268</attachid>
            <date>2003-09-08 12:15 0000</date>
            <desc>/etc/conf.d/mpd and /etc/init.d/mpd for running mpd as an init-script</desc>
            <filename>mpd.tar.bz2</filename>
            <type>application/bzip2</type>
            <data encoding="base64">QlpoOTFBWSZTWUYirswAAdf/hMw0IEB9Z//zr+feLv/v/z4AAIEIQAKcRsrYEEooNJiTMJPRGmTQ
AGmQ2oBppoaaNAeppoJUyJiniBTaZU/UamQBoNHqADT1AAAHpA4yNMmJoMmTCaZAyGgNAaZNDACa
AwlETTJJtRp6I0bUAAaAAB6QDR6T0mgCo/u0tjRsFQRFcCCE9zOZIEJ4oo0LAogDhGQAVFQlVJvy
nrRIvuurFKJHrCZg0fFCBYm0WuDEwJPXce0mFEfgluvcYhQStaRRQUYJ9oZQ6yaSngg45UGiqxwV
mXHxcGX2H2it8xBmmTOC2EOx1RatKjWbjfhahklYOXw2QkYyZ5yHbldjMmVZUOtBUth/DRXVQuXl
GyzRFHOEmlUXtxwIS6tMWAmcMLCMGx1JlSyC50b5MInf4GDNiDOMZ3WmA0dxo9GiwIOGqp4NuhHr
ZyzQiFjIdDa/OXlfK+DUVjxgwMecdma5MZ9FBfDbvhbwgKkSIrrtERTHcVEhDACklQUiFIFYHVBB
A+4cui22DXOc4pySD6zDUEpSk2TWqygb4hAMglAaXgUNYclkIMy8IVBG4QJ5lUVVtQFVVWoXa5a7
7zUHMdCjqPGafFkQwPBibwW30fKCCmkAoroKqHyBAg39R/jI7g/dDOopgl8x+CbisjAtzyTbT+il
K44Ljp/2rmTGhOGdDahig5yCWFbLxEmHv91OG9myrfeP4XFvAZ10IcXQs0lxJvPQ2E6a5PxSOvJg
3IncD0Yy5HRY0gKdlxFJY6GwCAcT3IkqsKRQ0xDWYA+0EOquaSDvQWagyvGyq5HbworE1qNdE3WZ
XQwOscxeOZMsbdKp2orkM65aXhvPx0UeaWcjglNUZnBX3nlGENrQx6k7EXSSTQXKb+mlbqQbCdD6
QaQsTqi8l8tCAf4u5IpwoSCMRV2Y
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17269</attachid>
            <date>2003-09-08 12:15 0000</date>
            <desc>/etc/conf.d/mpd and /etc/init.d/mpd for running mpd as an init-script</desc>
            <filename>mpd.tar.bz2</filename>
            <type>application/octet-stream</type>
            <data encoding="base64">QlpoOTFBWSZTWUYirswAAdf/hMw0IEB9Z//zr+feLv/v/z4AAIEIQAKcRsrYEEooNJiTMJPRGmTQ
AGmQ2oBppoaaNAeppoJUyJiniBTaZU/UamQBoNHqADT1AAAHpA4yNMmJoMmTCaZAyGgNAaZNDACa
AwlETTJJtRp6I0bUAAaAAB6QDR6T0mgCo/u0tjRsFQRFcCCE9zOZIEJ4oo0LAogDhGQAVFQlVJvy
nrRIvuurFKJHrCZg0fFCBYm0WuDEwJPXce0mFEfgluvcYhQStaRRQUYJ9oZQ6yaSngg45UGiqxwV
mXHxcGX2H2it8xBmmTOC2EOx1RatKjWbjfhahklYOXw2QkYyZ5yHbldjMmVZUOtBUth/DRXVQuXl
GyzRFHOEmlUXtxwIS6tMWAmcMLCMGx1JlSyC50b5MInf4GDNiDOMZ3WmA0dxo9GiwIOGqp4NuhHr
ZyzQiFjIdDa/OXlfK+DUVjxgwMecdma5MZ9FBfDbvhbwgKkSIrrtERTHcVEhDACklQUiFIFYHVBB
A+4cui22DXOc4pySD6zDUEpSk2TWqygb4hAMglAaXgUNYclkIMy8IVBG4QJ5lUVVtQFVVWoXa5a7
7zUHMdCjqPGafFkQwPBibwW30fKCCmkAoroKqHyBAg39R/jI7g/dDOopgl8x+CbisjAtzyTbT+il
K44Ljp/2rmTGhOGdDahig5yCWFbLxEmHv91OG9myrfeP4XFvAZ10IcXQs0lxJvPQ2E6a5PxSOvJg
3IncD0Yy5HRY0gKdlxFJY6GwCAcT3IkqsKRQ0xDWYA+0EOquaSDvQWagyvGyq5HbworE1qNdE3WZ
XQwOscxeOZMsbdKp2orkM65aXhvPx0UeaWcjglNUZnBX3nlGENrQx6k7EXSSTQXKb+mlbqQbCdD6
QaQsTqi8l8tCAf4u5IpwoSCMRV2Y
</data>        

          </attachment>
    </bug>

</bugzilla>