Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59903 - Request: pydoc as init.d service
Summary: Request: pydoc as init.d service
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Low enhancement
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-09 14:58 UTC by Salim Fadhley
Modified: 2008-03-11 16:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/conf.d/pydoc (pydoc,234 bytes, text/plain)
2004-08-09 16:12 UTC, Saleem Abdulrasool (RETIRED)
Details
/etc/init.d/pydoc (pydoc,633 bytes, text/plain)
2004-08-09 16:14 UTC, Saleem Abdulrasool (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salim Fadhley 2004-08-09 14:58:35 UTC
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.
Comment 1 Saleem Abdulrasool (RETIRED) gentoo-dev 2004-08-09 16:12:45 UTC
Created attachment 37127 [details]
/etc/conf.d/pydoc
Comment 2 Saleem Abdulrasool (RETIRED) gentoo-dev 2004-08-09 16:14:34 UTC
Created attachment 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.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2005-04-20 10:17:23 UTC
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.
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2006-06-15 08:30:29 UTC
I have done this for my own machine as well. Would be nice to have.
Comment 5 Tiziano Müller (RETIRED) gentoo-dev 2008-03-01 13:40:03 UTC
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.
Comment 6 Carsten Milkau 2008-03-11 11:55:01 UTC
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!
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2008-03-11 14:25:23 UTC
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.
Comment 8 Carsten Milkau 2008-03-11 16:02:43 UTC
Oh! That was quick, thank you!