Bug 59903 - Request: pydoc as init.d service
|
Bug#:
59903
|
Product: Gentoo Linux
|
Version: 2004.2
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P4
|
|
Resolution: FIXED
|
Assigned To: python@gentoo.org
|
Reported By: sal@stodge.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: Request: pydoc as init.d service
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-08-09 14:58 0000
|
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.
Created an attachment (id=37128) [details]
/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.
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.
I have done this for my own machine as well. Would be nice to have.
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.
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't know how to fix this.
I need multiple versions of python installed for development pursoses though.
Please help!
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.
Oh! That was quick, thank you!