<?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>59903</bug_id>
          
          <creation_ts>2004-08-09 14:58 0000</creation_ts>
          <short_desc>Request: pydoc as init.d service</short_desc>
          <delta_ts>2008-03-11 16:02:43 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>2004.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P4</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sal@stodge.org</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>chat.noir@arcor.de</cc>
    
    <cc>djc@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>sal@stodge.org</who>
            <bug_when>2004-08-09 14:58:35 0000</bug_when>
            <thetext>Pydoc is a documentation tool for python, which amongst other things can act as a web-server and allow users to discover what modules are installed. Pydoc can be invoked like this:

$ pydoc -p 1234
means: start pydoc and run a webserver on port 1234.

Wouldnt it be cool if this could be started as a service from /etc/init.d, with a conf.d file to tell the system what port to run pydoc on. If your main business is python programming then pydoc would be there for you allways.

I think Gentoo is already by far the best distro for python developers (and users of Py apps like Zope), but this would be an added convenience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>compnerd@gentoo.org</who>
            <bug_when>2004-08-09 16:12:45 0000</bug_when>
            <thetext>Created an attachment (id=37127)
/etc/conf.d/pydoc
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>compnerd@gentoo.org</who>
            <bug_when>2004-08-09 16:14:34 0000</bug_when>
            <thetext>Created an attachment (id=37128)
/etc/init.d/pydoc

Put the files in the appropriate places (see the name), and chmod +x
/etc/init.d/pydoc   You should be able to then just rc-update add pydoc default
to  automatically launch the pydoc server.  You *MUST* have the
/etc/conf.d/pydoc file as well as that stores the port for the server.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2005-04-20 10:17:23 0000</bug_when>
            <thetext>could be a good thing, but rather low on my list of priorities since if you have python, you probably have pydoc on your console anyway.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>djc@gentoo.org</who>
            <bug_when>2006-06-15 08:30:29 0000</bug_when>
            <thetext>I have done this for my own machine as well. Would be nice to have.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2008-03-01 13:40:03 0000</bug_when>
            <thetext>Added for the latest revisions of python-2.{4,5} without revision bump (since we have to do such in the next couple of weeks anyway).
Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chat.noir@arcor.de</who>
            <bug_when>2008-03-11 11:55:01 0000</bug_when>
            <thetext>this has been incorporated into python 2.4 and 2.5 ebuilds, however now slotting is broken, as it is part of both slots. I don&apos;t know how to fix this. I need multiple versions of python installed for development pursoses though. Please help!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2008-03-11 14:25:23 0000</bug_when>
            <thetext>sorry, that was my fault. Should be fixed now, the pydoc init.d/conf.d scripts will get installed as pydoc-2.4, resp. pydoc-2.5.

Please wait a couple of hours, resync and re-emerge python-2.4 and python-2.5. Sorry for the inconvenience.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chat.noir@arcor.de</who>
            <bug_when>2008-03-11 16:02:43 0000</bug_when>
            <thetext>Oh! That was quick, thank you!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>37127</attachid>
            <date>2004-08-09 16:12 0000</date>
            <desc>/etc/conf.d/pydoc</desc>
            <filename>pydoc</filename>
            <type>text/plain</type>
            <data encoding="base64">IyAvZXRjL2luaXQuZC9weWRvYy5jb25mCiMgJEhlYWRlcjogCgojIFRoaXMgZmlsZSBjb250YWlu
cyB0aGUgY29uZmlndXJhdGlvbiBpbmZvcm1hdGlvbiBmb3IgcHlkb2MncyBpbnRlcm5hbAojIHdl
YnNlcnZlci4gIFRoZSB2YXJpYWJsZXMgc2hvdWxkIGJlIHJhdGhlciBzZWxmIGV4cGxhbmF0b3J5
IDotKQoKIyBEZWZhdWx0IHBvcnQgZm9yIFB5dGhvbidzIHB5ZG9jIHNlcnZlcgpQWURPQ19QT1JU
PTc0NjQK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>37128</attachid>
            <date>2004-08-09 16:14 0000</date>
            <desc>/etc/init.d/pydoc</desc>
            <filename>pydoc</filename>
            <type>text/plain</type>
            <data encoding="base64">IyEvc2Jpbi9ydW5zY3JpcHQKIyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBUZWNobm9sb2dp
ZXMsIEluYy4KIyBEaXN0cmlidXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFs
IFB1YmxpYyBMaWNlbmNlIHYyCiMgJEhlYWRlcjoKCiMgc291cmNlIG91ciBjb25maWcKc291cmNl
IC9ldGMvY29uZi5kL3B5ZG9jCgpkZXBlbmQoKSB7CgluZWVkIG5ldCBkb21haW5uYW1lCn0KCnN0
YXJ0KCkgewoJaWYgWyAkUFlET0NfUE9SVCA9IDAgXSA7IHRoZW4KCQllZXJyb3IgIkludmFsaWQg
cG9ydCB2YWx1ZSIKCQlyZXR1cm4gMQoJZmkKCWViZWdpbiAiU3RhcnRpbmcgcHlkb2Mgc2VydmVy
IG9uIHBvcnQgJFBZRE9DX1BPUlQiIAoJc3RhcnQtc3RvcC1kYWVtb24gLS1zdGFydCAtLWJhY2tn
cm91bmQgLS1tYWtlLXBpZGZpbGUgXAoJCQkgIC0tcGlkZmlsZSAvdmFyL3J1bi9weWRvYy5waWQg
XAoJCQkgIC0tc3RhcnRhcyAvdXNyL2Jpbi9weWRvYyAtLSAtcCAkUFlET0NfUE9SVAoJZWVuZCAk
Pwp9CgpzdG9wKCkgewoJZWJlZ2luICJTdG9wcGluZyBweWRvYyBzZXJ2ZXIiCglzdGFydC1zdG9w
LWRhZW1vbiAtLXN0b3AgLS1xdWlldCAtLXBpZGZpbGUgL3Zhci9ydW4vcHlkb2MucGlkCgllZW5k
ICQ/Cn0K
</data>        

          </attachment>
    </bug>

</bugzilla>